| 1 |
--source include/have_debug.inc |
| 2 |
# |
| 3 |
# exists both as global and session |
| 4 |
# |
| 5 |
set session debug="L"; |
| 6 |
|
| 7 |
select @@global.debug="1"; # just to show that global.debug exists |
| 8 |
select @@session.debug; # here we know the value and can display it |
| 9 |
--replace_column 2 # |
| 10 |
show global variables like 'debug'; |
| 11 |
show session variables like 'debug'; |
| 12 |
--replace_column 2 # |
| 13 |
--disable_warnings |
| 14 |
select * from performance_schema.global_variables where variable_name="debug"; |
| 15 |
select * from performance_schema.session_variables where variable_name="debug"; |
| 16 |
--enable_warnings |
| 17 |
|
| 18 |
--error ER_WRONG_TYPE_FOR_VAR |
| 19 |
set @@global.debug=1; |
| 20 |
--error ER_WRONG_TYPE_FOR_VAR |
| 21 |
set @@global.debug=1.1; |
| 22 |
--error ER_WRONG_TYPE_FOR_VAR |
| 23 |
set @@global.debug=1e1; |
| 24 |
|