Reputation: 297
I have a general AFTER UPDATE trigger for my users table to check if a column has changed, and if so, call a stored procedure.
The problem is the stored procedure does some calculations and itself updates a field in users.
How do I avoid the recursion if my stored procedure updates the users table, which invokes the trigger, which again invokes the stored procedure?
Thanks!
Upvotes: 1
Views: 1600
Reputation: 3537
MySQL doesn't let you disable triggers (without dropping and recreating them), but you have a couple of options:
Upvotes: 1