diff options
Diffstat (limited to 'mysql-test/t/join.test')
-rw-r--r-- | mysql-test/t/join.test | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mysql-test/t/join.test b/mysql-test/t/join.test index 33289f77c13..73b40715676 100644 --- a/mysql-test/t/join.test +++ b/mysql-test/t/join.test @@ -1135,6 +1135,13 @@ SET optimizer_switch=@tmp_optimizer_switch; DROP TABLE t1,t2,t3,t4,t5; +--echo # +--echo # MDEV-4752: Segfault during parsing of illegal query +--echo # +--error ER_PARSE_ERROR +SELECT * FROM t5 JOIN (t1 JOIN t2 UNION SELECT * FROM t3 JOIN t4); + + SET optimizer_switch=@save_optimizer_switch; --echo # |