Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trigger handling
Message
De
15/05/2005 13:30:54
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Trigger handling
Versions des environnements
Visual FoxPro:
VFP 6
Database:
Visual FoxPro
Divers
Thread ID:
01014364
Message ID:
01014364
Vues:
53
What happens if a table has a trigger, and there is some problem when updating the record? Is the entire trigger supposed to be embedded in a transaction, which will undo any changes done in the trigger?

More specifically, my problem is the following. I have a material reception / material delivery form, which will update the current stock - updating is done through a trigger. Under certain circumstances, the user gets an error message, "Update conflict", with the option "Retry?" I still have to investigate why exactly the error appears, and what exactly the framework (VFX) does, but I have the impression that the Retry will do a forced update.

In this case, the data gets saved, but the stock is out of synch, meaning that there was some problem with the trigger.

Of course, I will have to investigate and debug the framework code (the error seems to be easy to reproduce). But I also wanted to see if anybody could give me a clue about trigger handling in general, as explained in the first paragraph.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform