MySQL Forums
Forum List  »  Triggers

Re: "There is no NEW row in on DELETE trigger" error when creating Foreign Key
Posted by: Rod Sherer
Date: March 13, 2009 07:39AM

The error you are getting tells it all. You can not access the NEW value of any column in any table from an 'ON DELETE' trigger. There is no new value to access, only OLD values. This check is not valid:

(NEW.userTypeId <> OLD.userTypeId)

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: "There is no NEW row in on DELETE trigger" error when creating Foreign Key
4087
March 13, 2009 07:39AM


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.