mariadb/mysql-test/main/set_statement_notembedded.test

15 lines
357 B
Text
Raw Normal View History

2014-11-29 22:29:03 +01:00
--source include/not_embedded.inc
#
# statement timeout
#
SELECT @@MAX_STATEMENT_TIME;
SET STATEMENT MAX_STATEMENT_TIME=3 FOR SELECT SLEEP(1);
2014-11-29 22:29:03 +01:00
SHOW STATUS LIKE "max_statement_time_exceeded";
2020-10-30 17:23:53 +01:00
--error ER_STATEMENT_TIMEOUT
SET STATEMENT MAX_STATEMENT_TIME=1 FOR SELECT SLEEP(10);
2014-11-29 22:29:03 +01:00
SHOW STATUS LIKE "max_statement_time_exceeded";
SELECT @@MAX_STATEMENT_TIME;