Subject | Re: [firebird-support] Triggers, anything I should know? |
---|---|
Author | Ann W. Harrison |
Post date | 2010-07-12T15:33:10Z |
sqlsvr wrote:
and succeeds or is completely undone with the statement. If
a trigger executes statements that cause other triggers to
fire, they too are part of the original statement and succeed
or are undone with it.
Good luck,
Ann
> I'm using the path enumeration model and nested set model in some of my tables and to maintain integrity, I'm planning to update the paths using a trigger. The trigger would be an insert/delete trigger.The trigger is part of the statement that caused it to fire,
>
> Is there anything special I should know about triggers in Firebird? If a insert fails on a table for some reason, does the INSERT trigger execute?
>
> If the trigger query fails, does the insert get rollback?
and succeeds or is completely undone with the statement. If
a trigger executes statements that cause other triggers to
fire, they too are part of the original statement and succeed
or are undone with it.
Good luck,
Ann