Commit 3b4be648 authored by Vasil Dimov's avatar Vasil Dimov

Update the sys_vars.innodb_change_buffering_basic mysql-test since the

imported InnoDB provides more values for "innodb_change_buffering".
parent 818b32c4
SET @start_global_value = @@global.innodb_change_buffering;
SELECT @start_global_value;
@start_global_value
inserts
Valid values are 'inserts' and 'none'
select @@global.innodb_change_buffering in ('inserts', 'none');
@@global.innodb_change_buffering in ('inserts', 'none')
all
Valid values are 'all', 'deletes', 'changes', 'inserts', 'none', 'purges'
select @@global.innodb_change_buffering in ('all', 'deletes', 'changes', 'inserts', 'none', 'purges');
@@global.innodb_change_buffering in ('all', 'deletes', 'changes', 'inserts', 'none', 'purges')
1
select @@global.innodb_change_buffering;
@@global.innodb_change_buffering
inserts
all
select @@session.innodb_change_buffering;
ERROR HY000: Variable 'innodb_change_buffering' is a GLOBAL variable
show global variables like 'innodb_change_buffering';
Variable_name Value
innodb_change_buffering inserts
innodb_change_buffering all
show session variables like 'innodb_change_buffering';
Variable_name Value
innodb_change_buffering inserts
innodb_change_buffering all
select * from information_schema.global_variables where variable_name='innodb_change_buffering';
VARIABLE_NAME VARIABLE_VALUE
INNODB_CHANGE_BUFFERING inserts
INNODB_CHANGE_BUFFERING all
select * from information_schema.session_variables where variable_name='innodb_change_buffering';
VARIABLE_NAME VARIABLE_VALUE
INNODB_CHANGE_BUFFERING inserts
INNODB_CHANGE_BUFFERING all
set global innodb_change_buffering='none';
select @@global.innodb_change_buffering;
@@global.innodb_change_buffering
......@@ -60,4 +60,4 @@ ERROR 42000: Variable 'innodb_change_buffering' can't be set to the value of 'so
SET @@global.innodb_change_buffering = @start_global_value;
SELECT @@global.innodb_change_buffering;
@@global.innodb_change_buffering
inserts
all
......@@ -11,8 +11,8 @@ SELECT @start_global_value;
#
# exists as global only
#
--echo Valid values are 'inserts' and 'none'
select @@global.innodb_change_buffering in ('inserts', 'none');
--echo Valid values are 'all', 'deletes', 'changes', 'inserts', 'none', 'purges'
select @@global.innodb_change_buffering in ('all', 'deletes', 'changes', 'inserts', 'none', 'purges');
select @@global.innodb_change_buffering;
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
select @@session.innodb_change_buffering;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment