From c1eaa385ffb44bdf6264d2cc4b4cc0e10284c88a Mon Sep 17 00:00:00 2001 From: Oleksandr Byelkin Date: Mon, 3 Feb 2020 18:20:24 +0100 Subject: MDEV-21616: Server crash when using "SET STATEMENT max_statement_time=0 FOR desc xxx" lead to collapse Main select should be pushed first. --- mysql-test/main/parser.test | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'mysql-test/main/parser.test') diff --git a/mysql-test/main/parser.test b/mysql-test/main/parser.test index c6e9f13cdaf..54048d0de1d 100644 --- a/mysql-test/main/parser.test +++ b/mysql-test/main/parser.test @@ -1565,4 +1565,14 @@ select * from t2; SET STATEMENT max_statement_time=900 FOR unlock tables; drop table t1, t2; +--echo # +--echo # MDEV-21616: Server crash when using +--echo # "SET STATEMENT max_statement_time=0 FOR desc xxx" lead to collapse +--echo # + +create table t1 (a int); +SET STATEMENT max_statement_time=0 FOR desc t1; +drop table t1; +SET STATEMENT max_statement_time=0 FOR do 1; + --echo # End of 10.4 tests -- cgit v1.2.1