summaryrefslogtreecommitdiff
path: root/mysql-test/r/set_statement_notembedded.result
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2014-11-29 22:29:03 +0100
committerSergei Golubchik <serg@mariadb.org>2014-11-29 22:29:03 +0100
commitf7708d683036a1471bcdaa25580ac995edfa9f49 (patch)
tree908adc0b37b9e3a0ba1a9ff805f5fafdea0c3e23 /mysql-test/r/set_statement_notembedded.result
parentd0d6284cab70af148269d95744f615454cac24bb (diff)
downloadmariadb-git-f7708d683036a1471bcdaa25580ac995edfa9f49.tar.gz
fixes for --embedded
Diffstat (limited to 'mysql-test/r/set_statement_notembedded.result')
-rw-r--r--mysql-test/r/set_statement_notembedded.result22
1 files changed, 22 insertions, 0 deletions
diff --git a/mysql-test/r/set_statement_notembedded.result b/mysql-test/r/set_statement_notembedded.result
new file mode 100644
index 00000000000..e45ae366c6e
--- /dev/null
+++ b/mysql-test/r/set_statement_notembedded.result
@@ -0,0 +1,22 @@
+SELECT @@MAX_STATEMENT_TIME;
+@@MAX_STATEMENT_TIME
+0.000000
+SET STATEMENT MAX_STATEMENT_TIME=2 FOR SELECT SLEEP(1);
+SLEEP(1)
+0
+SHOW STATUS LIKE "max_statement_time_exceeded";
+Variable_name Value
+Max_statement_time_exceeded 0
+SET STATEMENT MAX_STATEMENT_TIME=2 FOR SELECT SLEEP(3);
+SLEEP(3)
+1
+SHOW STATUS LIKE "max_statement_time_exceeded";
+Variable_name Value
+Max_statement_time_exceeded 1
+SELECT @@MAX_STATEMENT_TIME;
+@@MAX_STATEMENT_TIME
+0.000000
+set statement default_master_connection=default for select 1;
+ERROR 42000: The system variable default_master_connection cannot be set in SET STATEMENT.
+set statement default_master_connection=default for select 1;
+ERROR 42000: The system variable default_master_connection cannot be set in SET STATEMENT.