MySQL Forums
Forum List  »  Triggers

Out of range error when the trigger fires
Posted by: Sally Masipa
Date: December 23, 2008 03:37AM

I have a problem whenever I update data into my table tesiting the trigger below, it complains about the field in my log table AuditID --(not null , autonumber),

at first I didnt have it in my insert statement and it complained about data out of range and I tried to fake the field as '' in the below it still complains , Can anyone assist with this matter.



Create trigger log before update on tblName
for each row
insert into tblName values ('','Emplog','1',Current_user(),current_timestamp,new.FullName,old.FullName,'FullName','U');

-----




thanks in advance



Edited 1 time(s). Last edit at 12/23/2008 03:38AM by Sally Masipa.

Options: ReplyQuote


Subject
Views
Written By
Posted
Out of range error when the trigger fires
2707
December 23, 2008 03:37AM


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.