summaryrefslogtreecommitdiffstats
path: root/mysql-test/suite/sys_vars/r/debug_basic.result
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/suite/sys_vars/r/debug_basic.result')
-rw-r--r--mysql-test/suite/sys_vars/r/debug_basic.result27
1 files changed, 27 insertions, 0 deletions
diff --git a/mysql-test/suite/sys_vars/r/debug_basic.result b/mysql-test/suite/sys_vars/r/debug_basic.result
new file mode 100644
index 00000000..a97ad65b
--- /dev/null
+++ b/mysql-test/suite/sys_vars/r/debug_basic.result
@@ -0,0 +1,27 @@
+set session debug="L";
+Warnings:
+Warning 1287 '@@debug' is deprecated and will be removed in a future release. Please use '@@debug_dbug' instead
+select @@global.debug="1";
+@@global.debug="1"
+0
+select @@session.debug;
+@@session.debug
+L
+show global variables like 'debug';
+Variable_name Value
+debug #
+show session variables like 'debug';
+Variable_name Value
+debug L
+select * from information_schema.global_variables where variable_name="debug";
+VARIABLE_NAME VARIABLE_VALUE
+DEBUG #
+select * from information_schema.session_variables where variable_name="debug";
+VARIABLE_NAME VARIABLE_VALUE
+DEBUG L
+set @@global.debug=1;
+ERROR 42000: Incorrect argument type to variable 'debug'
+set @@global.debug=1.1;
+ERROR 42000: Incorrect argument type to variable 'debug'
+set @@global.debug=1e1;
+ERROR 42000: Incorrect argument type to variable 'debug'