summaryrefslogtreecommitdiff
path: root/mysql-test/t/parser.test
diff options
context:
space:
mode:
authorVicențiu Ciorbaru <vicentiu@mariadb.org>2018-04-03 18:08:30 +0300
committerVicențiu Ciorbaru <vicentiu@mariadb.org>2018-04-03 18:08:30 +0300
commit6a72b9096a9aa793571159ca9aa8fbc7fdf743b1 (patch)
treed02fcab11100ed4605c9cbb336b323e6805b59db /mysql-test/t/parser.test
parent8ffbb825e6a09d3055f46ed4b456573aef5c474c (diff)
parentf5369faf5bbfb56b5e945836eb3f7c7ee88b4079 (diff)
downloadmariadb-git-6a72b9096a9aa793571159ca9aa8fbc7fdf743b1.tar.gz
Merge branch '5.5' into 10.0
Diffstat (limited to 'mysql-test/t/parser.test')
-rw-r--r--mysql-test/t/parser.test9
1 files changed, 9 insertions, 0 deletions
diff --git a/mysql-test/t/parser.test b/mysql-test/t/parser.test
index 3058a70eefc..6a69f666a81 100644
--- a/mysql-test/t/parser.test
+++ b/mysql-test/t/parser.test
@@ -780,3 +780,12 @@ CREATE TRIGGER tr AFTER DELETE ON t1 FOR EACH ROW SET @a = 1\;
--error ER_PARSE_ERROR
PREPARE stmt FROM 'CREATE TRIGGER tr AFTER DELETE ON t1 FOR EACH ROW SET @a = 1\\';
DROP TABLE t1;
+
+--echo #
+--echo # MDEV-15620 Crash when using "SET @@NEW.a=expr" inside a trigger
+--echo #
+
+CREATE TABLE t1 (a INT);
+--error ER_UNKNOWN_SYSTEM_VARIABLE
+CREATE TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW SET @@NEW.a=0;
+DROP TABLE t1;