mirror of
https://github.com/MariaDB/server.git
synced 2025-01-27 17:33:44 +01:00
39 lines
878 B
Text
39 lines
878 B
Text
--source include/have_wsrep.inc
|
|
|
|
--echo #
|
|
--echo # wsrep_provider
|
|
--echo #
|
|
|
|
--echo # save the initial value
|
|
SET @wsrep_provider_global_saved = @@global.wsrep_provider;
|
|
|
|
--echo # default
|
|
SELECT @@global.wsrep_provider;
|
|
|
|
--echo
|
|
--echo # scope
|
|
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
|
SELECT @@session.wsrep_provider;
|
|
SELECT @@global.wsrep_provider;
|
|
|
|
--echo
|
|
--echo # valid values
|
|
SET @@global.wsrep_provider=default;
|
|
SELECT @@global.wsrep_provider;
|
|
|
|
--echo
|
|
--echo # invalid values
|
|
--error ER_WRONG_VALUE_FOR_VAR
|
|
SET @@global.wsrep_provider='/invalid/libgalera_smm.so';
|
|
--error ER_WRONG_VALUE_FOR_VAR
|
|
SET @@global.wsrep_provider=NULL;
|
|
SELECT @@global.wsrep_provider;
|
|
--error ER_WRONG_TYPE_FOR_VAR
|
|
SET @@global.wsrep_provider=1;
|
|
SELECT @@global.wsrep_provider;
|
|
|
|
--echo
|
|
--echo # restore the initial value
|
|
SET @@global.wsrep_provider = @wsrep_provider_global_saved;
|
|
|
|
--echo # End of test
|