Debian Codegraph @

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

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