summaryrefslogtreecommitdiff
path: root/mysql-test/r/null.result
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2016-03-04 10:13:41 +0100
committerSergei Golubchik <serg@mariadb.org>2016-03-05 16:25:30 +0100
commit33d298493df7659f17c7825ee17ecb068402d29a (patch)
treeb3b5e11af05fde9ccca08682193bd440081baa26 /mysql-test/r/null.result
parent70f5fabdbf50abb494304baaf863feac3fbd5dd9 (diff)
downloadmariadb-git-33d298493df7659f17c7825ee17ecb068402d29a.tar.gz
MDEV-9683 Server crashes in Item::basic_const_item on numerous nested NULLIFs
test case only
Diffstat (limited to 'mysql-test/r/null.result')
-rw-r--r--mysql-test/r/null.result5
1 files changed, 5 insertions, 0 deletions
diff --git a/mysql-test/r/null.result b/mysql-test/r/null.result
index f321ac978f5..3da7e4805c2 100644
--- a/mysql-test/r/null.result
+++ b/mysql-test/r/null.result
@@ -1566,6 +1566,11 @@ f1
EXECUTE stmt;
f1
DROP TABLE t1;
+CREATE TABLE t1 (i INT);
+INSERT INTO t1 VALUES (1),(2);
+SELECT * FROM t1 WHERE NULLIF(NULLIF(NULLIF(NULLIF(NULLIF(NULLIF(NULLIF(NULLIF(NULLIF(NULLIF(NULLIF(NULLIF(NULLIF(NULLIF(i = ROUND(0), 14), 13), 12), 11), 10), 9), 8), 7), 6), 5), 4), 3), 2), 1);
+i
+DROP TABLE t1;
#
# End of 10.1 tests
#