mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
Merged sys_vars.wsrep_* tests from maria-10.0-galera tree.
This commit is contained in:
@@ -1,49 +1,22 @@
|
||||
SELECT COUNT(@@GLOBAL.wsrep_recover);
|
||||
COUNT(@@GLOBAL.wsrep_recover)
|
||||
1
|
||||
1 Expected
|
||||
set @@global.wsrep_recover=ON;
|
||||
ERROR HY000: Variable 'wsrep_recover' is a read only variable
|
||||
Expected error 'Readonly variable'
|
||||
set @@global.wsrep_recover=OFF;
|
||||
ERROR HY000: Variable 'wsrep_recover' is a read only variable
|
||||
Expected error 'Readonly variable'
|
||||
SELECT @@GLOBAL.wsrep_recover = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
||||
WHERE VARIABLE_NAME='wsrep_recover';
|
||||
@@GLOBAL.wsrep_recover = VARIABLE_VALUE
|
||||
1
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DOUBLE value: 'OFF'
|
||||
1 Expected
|
||||
SELECT COUNT(@@GLOBAL.wsrep_recover);
|
||||
COUNT(@@GLOBAL.wsrep_recover)
|
||||
1
|
||||
1 Expected
|
||||
SELECT COUNT(VARIABLE_VALUE)
|
||||
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
||||
WHERE VARIABLE_NAME='wsrep_recover';
|
||||
COUNT(VARIABLE_VALUE)
|
||||
1
|
||||
1 Expected
|
||||
SELECT @@wsrep_recover = @@GLOBAL.wsrep_recover;
|
||||
@@wsrep_recover = @@GLOBAL.wsrep_recover
|
||||
1
|
||||
1 Expected
|
||||
SELECT COUNT(@@wsrep_recover);
|
||||
COUNT(@@wsrep_recover)
|
||||
1
|
||||
1 Expected
|
||||
SELECT COUNT(@@local.wsrep_recover);
|
||||
#
|
||||
# wsrep_recover
|
||||
#
|
||||
# default
|
||||
SELECT @@global.wsrep_recover;
|
||||
@@global.wsrep_recover
|
||||
0
|
||||
SELECT @@session.wsrep_recover;
|
||||
ERROR HY000: Variable 'wsrep_recover' is a GLOBAL variable
|
||||
Expected error 'Variable is a GLOBAL variable'
|
||||
SELECT COUNT(@@SESSION.wsrep_recover);
|
||||
ERROR HY000: Variable 'wsrep_recover' is a GLOBAL variable
|
||||
Expected error 'Variable is a GLOBAL variable'
|
||||
SELECT COUNT(@@GLOBAL.wsrep_recover);
|
||||
COUNT(@@GLOBAL.wsrep_recover)
|
||||
1
|
||||
1 Expected
|
||||
SELECT wsrep_recover = @@SESSION.wsrep_recover;
|
||||
ERROR 42S22: Unknown column 'wsrep_recover' in 'field list'
|
||||
Expected error 'Readonly variable'
|
||||
|
||||
# scope and valid values
|
||||
SET @@global.wsrep_recover=OFF;
|
||||
ERROR HY000: Variable 'wsrep_recover' is a read only variable
|
||||
SET @@global.wsrep_recover=ON;
|
||||
ERROR HY000: Variable 'wsrep_recover' is a read only variable
|
||||
|
||||
# invalid values
|
||||
SET @@global.wsrep_recover=NULL;
|
||||
ERROR HY000: Variable 'wsrep_recover' is a read only variable
|
||||
SET @@global.wsrep_recover='junk';
|
||||
ERROR HY000: Variable 'wsrep_recover' is a read only variable
|
||||
# End of test
|
||||
|
||||
Reference in New Issue
Block a user