Debian Codegraph @

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

raw
1 #
2 # wsrep_slave_uk_checks
3 #
4 # save the initial value
5 SET @wsrep_slave_uk_checks_global_saved = @@global.wsrep_slave_uk_checks;
6 # default
7 SELECT @@global.wsrep_slave_uk_checks;
8 @@global.wsrep_slave_uk_checks
9 0
10
11 # scope
12 SELECT @@session.wsrep_slave_uk_checks;
13 ERROR HY000: Variable 'wsrep_slave_UK_checks' is a GLOBAL variable
14 SET @@global.wsrep_slave_uk_checks=OFF;
15 SELECT @@global.wsrep_slave_uk_checks;
16 @@global.wsrep_slave_uk_checks
17 0
18 SET @@global.wsrep_slave_uk_checks=ON;
19 SELECT @@global.wsrep_slave_uk_checks;
20 @@global.wsrep_slave_uk_checks
21 1
22
23 # valid values
24 SET @@global.wsrep_slave_uk_checks='OFF';
25 SELECT @@global.wsrep_slave_uk_checks;
26 @@global.wsrep_slave_uk_checks
27 0
28 SET @@global.wsrep_slave_uk_checks=ON;
29 SELECT @@global.wsrep_slave_uk_checks;
30 @@global.wsrep_slave_uk_checks
31 1
32 SET @@global.wsrep_slave_uk_checks=default;
33 SELECT @@global.wsrep_slave_uk_checks;
34 @@global.wsrep_slave_uk_checks
35 0
36
37 # invalid values
38 SET @@global.wsrep_slave_uk_checks=NULL;
39 ERROR 42000: Variable 'wsrep_slave_UK_checks' can't be set to the value of 'NULL'
40 SET @@global.wsrep_slave_uk_checks='junk';
41 ERROR 42000: Variable 'wsrep_slave_UK_checks' can't be set to the value of 'junk'
42
43 # restore the initial value
44 SET @@global.wsrep_slave_uk_checks = @wsrep_slave_uk_checks_global_saved;
45 # End of test