2009-09-23 00:06:02 +00:00
|
|
|
-- source include/have_innodb.inc
|
2009-11-04 12:11:12 -08:00
|
|
|
|
|
|
|
call mtr.add_suppression("InnoDB: invalid innodb_file_format_check value");
|
|
|
|
|
|
|
|
let $format=`select @@innodb_file_format`;
|
|
|
|
let $innodb_file_format_check_orig=`select @@innodb_file_format_check`;
|
2009-09-23 00:06:02 +00:00
|
|
|
|
|
|
|
select @@innodb_file_format;
|
|
|
|
select @@innodb_file_format_check;
|
|
|
|
set global innodb_file_format=antelope;
|
|
|
|
set global innodb_file_format=barracuda;
|
|
|
|
--error ER_WRONG_ARGUMENTS
|
|
|
|
set global innodb_file_format=cheetah;
|
|
|
|
select @@innodb_file_format;
|
|
|
|
set global innodb_file_format=default;
|
|
|
|
select @@innodb_file_format;
|
|
|
|
--error ER_WRONG_ARGUMENTS
|
|
|
|
set global innodb_file_format=on;
|
|
|
|
--error ER_WRONG_ARGUMENTS
|
|
|
|
set global innodb_file_format=off;
|
|
|
|
select @@innodb_file_format;
|
|
|
|
set global innodb_file_format_check=antelope;
|
|
|
|
set global innodb_file_format_check=barracuda;
|
|
|
|
--error ER_WRONG_ARGUMENTS
|
|
|
|
set global innodb_file_format_check=cheetah;
|
|
|
|
select @@innodb_file_format_check;
|
|
|
|
set global innodb_file_format_check=default;
|
|
|
|
select @@innodb_file_format_check;
|
|
|
|
--error ER_WRONG_ARGUMENTS
|
|
|
|
set global innodb_file_format=on;
|
|
|
|
--error ER_WRONG_ARGUMENTS
|
|
|
|
set global innodb_file_format=off;
|
|
|
|
select @@innodb_file_format_check;
|
|
|
|
|
2009-11-04 12:11:12 -08:00
|
|
|
#
|
|
|
|
# restore environment to the state it was before this test execution
|
|
|
|
#
|
|
|
|
|
|
|
|
-- disable_query_log
|
|
|
|
eval set global innodb_file_format=$format;
|
|
|
|
eval set global innodb_file_format_check=$innodb_file_format_check_orig;
|
|
|
|
-- enable_query_log
|