diff options
author | Alexander Barkov <bar@mariadb.com> | 2018-03-27 09:40:10 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.com> | 2018-03-27 09:40:10 +0400 |
commit | e8c2366bf87a89f87feac16d1cf98551ddb6bd40 (patch) | |
tree | c1d1c020bf532bbe9698cd52225b87cb4b2a541f /mysql-test/r/parser.result | |
parent | ddc5c65333a4add28907ccb82054ecba0ff6b873 (diff) | |
download | mariadb-git-e8c2366bf87a89f87feac16d1cf98551ddb6bd40.tar.gz |
MDEV-15620 Crash when using "SET @@NEW.a=expr" inside a trigger
A simple patch fixing the problem in 5.5.
Note, a full patch was previously fixed to 10.3.
Diffstat (limited to 'mysql-test/r/parser.result')
-rw-r--r-- | mysql-test/r/parser.result | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mysql-test/r/parser.result b/mysql-test/r/parser.result index 9a14c0e324b..70dc7a4c1cf 100644 --- a/mysql-test/r/parser.result +++ b/mysql-test/r/parser.result @@ -672,3 +672,10 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp PREPARE stmt FROM 'CREATE TRIGGER tr AFTER DELETE ON t1 FOR EACH ROW SET @a = 1\\'; ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '\' at line 1 DROP TABLE t1; +# +# MDEV-15620 Crash when using "SET @@NEW.a=expr" inside a trigger +# +CREATE TABLE t1 (a INT); +CREATE TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW SET @@NEW.a=0; +ERROR HY000: Unknown system variable 'NEW' +DROP TABLE t1; |