cancel
Showing results for 
Search instead for 
Did you mean: 

Self_recursion option in the Watcom-SQL dialect for a trigger

398

Is it possible to somehow emulate the self_recursion option in the Watcom-SQL dialect for a trigger?
I would like to completely eliminate the possibility of recursively calling a trigger ("Triggers firing themselves").

VolkerBarth
Contributor

Well, the obious easy answer is to prevent recursive trigger calls by adding conditions that prevent further calls. 😉

If that option does not impact Watcom-SQL triggers, you might use the stack trace functions/procedures to rollback the trigger once a particular stack level has been reached. (I do not know how that does impact performance...)

chris_keating
Product and Topic Expert
Product and Topic Expert

As a protective measure, SQLE_NESTING_TOO_DEEP is reported for unbounded recursive triggers (or procedures). This can be seen with a table with a DEFAULT TIMESTAMP column and an UPDATE trigger. Note: This impacts Windows after SP1 when microsecond TIMESTAMP support was added.

Accepted Solutions (0)

Answers (0)