innodb_file_format.test 1.5 KB
Newer Older
1 2
-- source include/restart_and_reinit.inc
-- source include/have_innodb.inc
Sergey Vojtovich's avatar
Sergey Vojtovich committed
3

4
let $innodb_file_format_orig=`select @@innodb_file_format`;
5
let $innodb_file_format_max_orig=`select @@innodb_file_format_max`;
6

Sergey Vojtovich's avatar
Sergey Vojtovich committed
7 8
select @@innodb_file_format;
select @@innodb_file_format_check;
9
select @@innodb_file_format_max;
Sergey Vojtovich's avatar
Sergey Vojtovich committed
10 11
set global innodb_file_format=antelope;
set global innodb_file_format=barracuda;
12
--error ER_WRONG_VALUE_FOR_VAR
Sergey Vojtovich's avatar
Sergey Vojtovich committed
13 14 15 16
set global innodb_file_format=cheetah;
select @@innodb_file_format;
set global innodb_file_format=default;
select @@innodb_file_format;
17
--error ER_WRONG_VALUE_FOR_VAR
Sergey Vojtovich's avatar
Sergey Vojtovich committed
18
set global innodb_file_format=on;
19
--error ER_WRONG_VALUE_FOR_VAR
Sergey Vojtovich's avatar
Sergey Vojtovich committed
20 21
set global innodb_file_format=off;
select @@innodb_file_format;
22 23
set global innodb_file_format_max=antelope;
set global innodb_file_format_max=barracuda;
24
--error ER_WRONG_VALUE_FOR_VAR
25 26 27 28
set global innodb_file_format_max=cheetah;
select @@innodb_file_format_max;
set global innodb_file_format_max=default;
select @@innodb_file_format_max;
29
--error ER_WRONG_VALUE_FOR_VAR
Sergey Vojtovich's avatar
Sergey Vojtovich committed
30
set global innodb_file_format=on;
31
--error ER_WRONG_VALUE_FOR_VAR
Sergey Vojtovich's avatar
Sergey Vojtovich committed
32
set global innodb_file_format=off;
33 34 35 36 37 38 39 40
select @@innodb_file_format_max;
set global innodb_file_format_max=antelope;

# innodb_file_format_check is read only variable, can be
# set as server startup parameter
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
set global innodb_file_format_check=off;

41
--disable_query_log
42
eval SET GLOBAL innodb_file_format=$innodb_file_format_orig;
43 44
eval SET GLOBAL innodb_file_format_max=$innodb_file_format_max_orig;
--enable_query_log