Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trigger handling
Message
From
15/05/2005 13:30:54
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Trigger handling
Environment versions
Visual FoxPro:
VFP 6
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01014364
Message ID:
01014364
Views:
52
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)
Next
Reply
Map
View

Click here to load this message in the networking platform