Debian Codegraph @

mysql-test/suite/sys_vars/r/userstat_basic.result

raw
1 SET @start_global_value = @@global.userstat;
2 select @@global.userstat = 0 or @@global.userstat = 1;
3 @@global.userstat = 0 or @@global.userstat = 1
4 1
5 select @@session.userstat;
6 ERROR HY000: Variable 'userstat' is a GLOBAL variable
7 SET @@global.userstat=0;
8 show global variables like 'userstat';
9 Variable_name Value
10 userstat OFF
11 show session variables like 'userstat';
12 Variable_name Value
13 userstat OFF
14 select * from information_schema.global_variables where variable_name='userstat';
15 VARIABLE_NAME VARIABLE_VALUE
16 USERSTAT OFF
17 select * from information_schema.session_variables where variable_name='userstat';
18 VARIABLE_NAME VARIABLE_VALUE
19 USERSTAT OFF
20 set global userstat=ON;
21 select @@global.userstat;
22 @@global.userstat
23 1
24 set global userstat=OFF;
25 select @@global.userstat;
26 @@global.userstat
27 0
28 set global userstat=1;
29 select @@global.userstat;
30 @@global.userstat
31 1
32 set session userstat=1;
33 ERROR HY000: Variable 'userstat' is a GLOBAL variable and should be set with SET GLOBAL
34 set global userstat=1.1;
35 ERROR 42000: Incorrect argument type to variable 'userstat'
36 set global userstat=1e1;
37 ERROR 42000: Incorrect argument type to variable 'userstat'
38 set global userstat="foo";
39 ERROR 42000: Variable 'userstat' can't be set to the value of 'foo'
40 SET @@global.userstat = @start_global_value;