Bug #11648 Wrong error when creating invalid trigger
| Submitted: | 29 Jun 2005 23:20 | Modified: | 10 Jul 2005 5:21 |
|---|---|---|---|
| Reporter: | Omer Barnir (OCA) | Email Updates: | |
| Status: | Not a Bug | Impact on me: | |
| Category: | MySQL Server | Severity: | S3 (Non-critical) |
| Version: | 5.0.8 | OS: | |
| Assigned to: | Dmitry Lenev | CPU Architecture: | Any |
[29 Jun 2005 23:20]
Omer Barnir
[10 Jul 2005 5:21]
Dmitry Lenev
Hi, Omer! This is not a bug. "Correct" version of your CREATE TRIGGER statement is: create trigger tr1 after delete on t1 for each row set new.f1=18; Note the "SET" keyword and difference between "new.f1" and "f1.new" used in your statement. Such "correct" statement fails with error that you expect: mysql> create trigger tr1 after delete on t1 for each row set new.f1=18; ERROR 1363 (HY000): There is no NEW row in on DELETE trigger
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.039 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
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.