Commit 12bac120 authored by calvin's avatar calvin

branches/innodb+: update test case innodb_change_buffering_basic.

The valid values of innodb_change_buffering are 'inserts', 'deletes',
'changes', 'purges', 'all', and 'none', with default value 'all'.
parent 56953f83
--- mysql-test\suite\sys_vars\t\innodb_change_buffering_basic.test.orig Mon Mar 15 16:15:22 2010
+++ mysql-test\suite\sys_vars\t\innodb_change_buffering_basic.test Fri Mar 19 01:19:09 2010
@@ -11,8 +11,8 @@
#
# exists as global only
#
---echo Valid values are 'inserts' and 'none'
-select @@global.innodb_change_buffering in ('inserts', 'none');
+--echo Valid values are 'inserts', 'deletes', 'changes', 'purges', 'all', and 'none'
+select @@global.innodb_change_buffering in ('inserts', 'deletes', 'changes', 'purges', 'all', 'none');
select @@global.innodb_change_buffering;
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
select @@session.innodb_change_buffering;
--- mysql-test\suite\sys_vars\r\innodb_change_buffering_basic.result.orig Mon Mar 15 16:15:22 2010
+++ mysql-test\suite\sys_vars\r\innodb_change_buffering_basic.result Fri Mar 19 01:23:58 2010
@@ -1,28 +1,28 @@
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 'inserts', 'deletes', 'changes', 'purges', 'all', and 'none'
+select @@global.innodb_change_buffering in ('inserts', 'deletes', 'changes', 'purges', 'all', 'none');
+@@global.innodb_change_buffering in ('inserts', 'deletes', 'changes', 'purges', 'all', 'none')
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 @@
SET @@global.innodb_change_buffering = @start_global_value;
SELECT @@global.innodb_change_buffering;
@@global.innodb_change_buffering
-inserts
+all
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