Debian Codegraph @

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

raw
1 SET @start_global_value = @@global.sync_relay_log;
2 SELECT @start_global_value;
3 @start_global_value
4 10000
5 select @@global.sync_relay_log;
6 @@global.sync_relay_log
7 10000
8 select @@session.sync_relay_log;
9 ERROR HY000: Variable 'sync_relay_log' is a GLOBAL variable
10 show global variables like 'sync_relay_log';
11 Variable_name Value
12 sync_relay_log 10000
13 show session variables like 'sync_relay_log';
14 Variable_name Value
15 sync_relay_log 10000
16 select * from performance_schema.global_variables where variable_name='sync_relay_log';
17 VARIABLE_NAME VARIABLE_VALUE
18 sync_relay_log 10000
19 select * from performance_schema.session_variables where variable_name='sync_relay_log';
20 VARIABLE_NAME VARIABLE_VALUE
21 sync_relay_log 10000
22 set global sync_relay_log=1;
23 select @@global.sync_relay_log;
24 @@global.sync_relay_log
25 1
26 set session sync_relay_log=1;
27 ERROR HY000: Variable 'sync_relay_log' is a GLOBAL variable and should be set with SET GLOBAL
28 set global sync_relay_log=1.1;
29 ERROR 42000: Incorrect argument type to variable 'sync_relay_log'
30 set global sync_relay_log=1e1;
31 ERROR 42000: Incorrect argument type to variable 'sync_relay_log'
32 set global sync_relay_log="foo";
33 ERROR 42000: Incorrect argument type to variable 'sync_relay_log'
34 set global sync_relay_log=0;
35 select @@global.sync_relay_log;
36 @@global.sync_relay_log
37 0
38 set global sync_relay_log=cast(-1 as unsigned int);
39 Warnings:
40 Warning 1292 Truncated incorrect sync_relay_log value: '18446744073709551615'
41 select @@global.sync_relay_log;
42 @@global.sync_relay_log
43 4294967295
44 SET @@global.sync_relay_log = @start_global_value;
45 SELECT @@global.sync_relay_log;
46 @@global.sync_relay_log
47 10000