1
0
mirror of https://github.com/MariaDB/server.git synced 2025-05-05 16:59:35 +03:00
mariadb/mysql-test/suite/sys_vars/r/wsrep_osu_method_basic.result
2015-07-14 16:05:29 -04:00

62 lines
1.5 KiB
Plaintext

#
# wsrep_osu_method
#
# save the initial value
SET @wsrep_osu_method_global_saved = @@global.wsrep_osu_method;
# default
SELECT @@global.wsrep_osu_method;
@@global.wsrep_osu_method
TOI
# scope
SELECT @@session.wsrep_osu_method;
@@session.wsrep_osu_method
TOI
SET @@global.wsrep_osu_method=TOI;
SELECT @@global.wsrep_osu_method;
@@global.wsrep_osu_method
TOI
# valid values
SET @@global.wsrep_osu_method=TOI;
SELECT @@global.wsrep_osu_method;
@@global.wsrep_osu_method
TOI
SET @@global.wsrep_osu_method=RSU;
SELECT @@global.wsrep_osu_method;
@@global.wsrep_osu_method
RSU
SET @@global.wsrep_osu_method="RSU";
SELECT @@global.wsrep_osu_method;
@@global.wsrep_osu_method
RSU
SET @@global.wsrep_osu_method=default;
SELECT @@global.wsrep_osu_method;
@@global.wsrep_osu_method
TOI
SET @@global.wsrep_osu_method=1;
SELECT @@global.wsrep_osu_method;
@@global.wsrep_osu_method
RSU
# invalid values
SET @@global.wsrep_osu_method=4;
ERROR 42000: Variable 'wsrep_OSU_method' can't be set to the value of '4'
SELECT @@global.wsrep_osu_method;
@@global.wsrep_osu_method
RSU
SET @@global.wsrep_osu_method=NULL;
ERROR 42000: Variable 'wsrep_OSU_method' can't be set to the value of 'NULL'
SELECT @@global.wsrep_osu_method;
@@global.wsrep_osu_method
RSU
SET @@global.wsrep_osu_method='junk';
ERROR 42000: Variable 'wsrep_OSU_method' can't be set to the value of 'junk'
SELECT @@global.wsrep_osu_method;
@@global.wsrep_osu_method
RSU
# restore the initial value
SET @@global.wsrep_osu_method = @wsrep_osu_method_global_saved;
# End of test