1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-9683 Server crashes in Item::basic_const_item on numerous nested NULLIFs

test case only
This commit is contained in:
Sergei Golubchik
2016-03-04 10:13:41 +01:00
parent 70f5fabdbf
commit 33d298493d
2 changed files with 15 additions and 0 deletions

View File

@ -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
#