MySQL Forums
Forum List  »  InnoDB

Re: TRIGGERs using AFTER UPDATE are not updated
Posted by: Peter Brawley
Date: September 09, 2016 08:13PM

Well, an after update trigger selecting a new.column value into a user variable reliably returns the updated value, so the problem is with the UDF, not with Triggers and Updates.

My guess is that what the UDF does is seen by InnoDB as external to the update, so a Select performed by the UDF will see pre-commit values. If that's so, you need a different method of broadcasting the change.

Options: ReplyQuote

Written By
Re: TRIGGERs using AFTER UPDATE are not updated
September 09, 2016 08:13PM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.