mirror of
https://github.com/MariaDB/server.git
synced 2025-07-02 14:22:51 +03:00
- Added tests for innodb and semisync plugin - Modified existing tests to include variable values in I_S tables - Updated the all_vars test to include optional checkes for INNODB and semisync plugin if loaded
50 lines
1.5 KiB
Plaintext
50 lines
1.5 KiB
Plaintext
|
|
|
|
#
|
|
# 2010-01-10 - Added check for I_S values aver variable value change
|
|
#
|
|
|
|
--source include/not_embedded.inc
|
|
|
|
SET @start_global_value = @@global.relay_log_recovery;
|
|
SELECT @start_global_value;
|
|
|
|
#
|
|
# exists as global only
|
|
#
|
|
select @@global.relay_log_recovery;
|
|
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
|
select @@session.relay_log_recovery;
|
|
show global variables like 'relay_log_recovery';
|
|
show session variables like 'relay_log_recovery';
|
|
select * from information_schema.global_variables where variable_name='relay_log_recovery';
|
|
select * from information_schema.session_variables where variable_name='relay_log_recovery';
|
|
|
|
#
|
|
# show that it's writable
|
|
#
|
|
set global relay_log_recovery=1;
|
|
select @@global.relay_log_recovery;
|
|
select * from information_schema.global_variables where variable_name='relay_log_recovery';
|
|
select * from information_schema.session_variables where variable_name='relay_log_recovery';
|
|
set global relay_log_recovery=OFF;
|
|
select @@global.relay_log_recovery;
|
|
select * from information_schema.global_variables where variable_name='relay_log_recovery';
|
|
select * from information_schema.session_variables where variable_name='relay_log_recovery';
|
|
--error ER_GLOBAL_VARIABLE
|
|
set session relay_log_recovery=1;
|
|
|
|
#
|
|
# incorrect types
|
|
#
|
|
--error ER_WRONG_TYPE_FOR_VAR
|
|
set global relay_log_recovery=1.1;
|
|
--error ER_WRONG_TYPE_FOR_VAR
|
|
set global relay_log_recovery=1e1;
|
|
--error ER_WRONG_VALUE_FOR_VAR
|
|
set global relay_log_recovery="foo";
|
|
|
|
SET @@global.relay_log_recovery = @start_global_value;
|
|
SELECT @@global.relay_log_recovery;
|
|
|