Commit b35e0918 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 6fb04b81
SET @start_global_value = @@global.innodb_change_buffering; SET @start_global_value = @@global.innodb_change_buffering;
SELECT @start_global_value; SELECT @start_global_value;
@start_global_value @start_global_value
inserts all
Valid values are 'inserts' and 'none' Valid values are 'all', 'deletes', 'changes', 'inserts', 'none', 'purges'
select @@global.innodb_change_buffering in ('inserts', 'none'); select @@global.innodb_change_buffering in ('all', 'deletes', 'changes', 'inserts', 'none', 'purges');
@@global.innodb_change_buffering in ('inserts', 'none') @@global.innodb_change_buffering in ('all', 'deletes', 'changes', 'inserts', 'none', 'purges')
1 1
select @@global.innodb_change_buffering; select @@global.innodb_change_buffering;
@@global.innodb_change_buffering @@global.innodb_change_buffering
inserts all
select @@session.innodb_change_buffering; select @@session.innodb_change_buffering;
ERROR HY000: Variable 'innodb_change_buffering' is a GLOBAL variable ERROR HY000: Variable 'innodb_change_buffering' is a GLOBAL variable
show global variables like 'innodb_change_buffering'; show global variables like 'innodb_change_buffering';
Variable_name Value Variable_name Value
innodb_change_buffering inserts innodb_change_buffering all
show session variables like 'innodb_change_buffering'; show session variables like 'innodb_change_buffering';
Variable_name Value Variable_name Value
innodb_change_buffering inserts innodb_change_buffering all
select * from information_schema.global_variables where variable_name='innodb_change_buffering'; select * from information_schema.global_variables where variable_name='innodb_change_buffering';
VARIABLE_NAME VARIABLE_VALUE VARIABLE_NAME VARIABLE_VALUE
INNODB_CHANGE_BUFFERING inserts INNODB_CHANGE_BUFFERING all
select * from information_schema.session_variables where variable_name='innodb_change_buffering'; select * from information_schema.session_variables where variable_name='innodb_change_buffering';
VARIABLE_NAME VARIABLE_VALUE VARIABLE_NAME VARIABLE_VALUE
INNODB_CHANGE_BUFFERING inserts INNODB_CHANGE_BUFFERING all
set global innodb_change_buffering='none'; set global innodb_change_buffering='none';
select @@global.innodb_change_buffering; select @@global.innodb_change_buffering;
@@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 ...@@ -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; SET @@global.innodb_change_buffering = @start_global_value;
SELECT @@global.innodb_change_buffering; SELECT @@global.innodb_change_buffering;
@@global.innodb_change_buffering @@global.innodb_change_buffering
inserts all
...@@ -11,8 +11,8 @@ SELECT @start_global_value; ...@@ -11,8 +11,8 @@ SELECT @start_global_value;
# #
# exists as global only # exists as global only
# #
--echo Valid values are 'inserts' and 'none' --echo Valid values are 'all', 'deletes', 'changes', 'inserts', 'none', 'purges'
select @@global.innodb_change_buffering in ('inserts', 'none'); select @@global.innodb_change_buffering in ('all', 'deletes', 'changes', 'inserts', 'none', 'purges');
select @@global.innodb_change_buffering; select @@global.innodb_change_buffering;
--error ER_INCORRECT_GLOBAL_LOCAL_VAR --error ER_INCORRECT_GLOBAL_LOCAL_VAR
select @@session.innodb_change_buffering; 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