Debian Codegraph @

mysql-test/suite/sys_vars/t/log_bin_basic.test

raw
1 #
2 # only global
3 #
4 select @@global.log_bin;
5 --error ER_INCORRECT_GLOBAL_LOCAL_VAR
6 select @@session.log_bin;
7 show global variables like 'log_bin';
8 show session variables like 'log_bin';
9 select * from information_schema.global_variables where variable_name='log_bin';
10 select * from information_schema.session_variables where variable_name='log_bin';
11
12 #
13 # show that it's read-only
14 #
15 --error ER_INCORRECT_GLOBAL_LOCAL_VAR
16 set global log_bin=1;
17 --error ER_INCORRECT_GLOBAL_LOCAL_VAR
18 set session log_bin=1;
19