mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Innodb tests innodb_file_format cleanup.
This commit is contained in:
@ -362,3 +362,5 @@ select @@innodb_file_format_max;
|
||||
@@innodb_file_format_max
|
||||
Barracuda
|
||||
drop table normal_table, zip_table;
|
||||
USE test;
|
||||
DROP DATABASE mysqltest_innodb_zip;
|
||||
|
@ -46,4 +46,3 @@ Antelope
|
||||
set global innodb_file_format_max=antelope;
|
||||
set global innodb_file_format_check=off;
|
||||
ERROR HY000: Variable 'innodb_file_format_check' is a read only variable
|
||||
SET GLOBAL innodb_file_format=Antelope;
|
||||
|
@ -1,5 +1,8 @@
|
||||
-- source include/have_innodb.inc
|
||||
|
||||
let $innodb_file_format_orig=`select @@innodb_file_format`;
|
||||
let $innodb_file_format_max_orig=`select @@innodb_file_format_max`;
|
||||
|
||||
let $MYSQLD_DATADIR= `select @@datadir`;
|
||||
|
||||
let $per_table=`select @@innodb_file_per_table`;
|
||||
@ -556,3 +559,8 @@ show create table t2c;
|
||||
--disable_info
|
||||
|
||||
DROP TABLE t1,t2,t2c,t2i;
|
||||
|
||||
--disable_query_log
|
||||
eval SET GLOBAL innodb_file_format=$innodb_file_format_orig;
|
||||
eval SET GLOBAL innodb_file_format_max=$innodb_file_format_max_orig;
|
||||
--enable_query_log
|
||||
|
@ -14,6 +14,8 @@ SELECT table_name, row_format, data_length, index_length
|
||||
let $per_table=`select @@innodb_file_per_table`;
|
||||
let $format=`select @@innodb_file_format`;
|
||||
let $innodb_strict_mode_orig=`select @@session.innodb_strict_mode`;
|
||||
let $innodb_file_format_orig=`select @@innodb_file_format`;
|
||||
let $innodb_file_format_max_orig=`select @@innodb_file_format_max`;
|
||||
SET @save_innodb_stats_on_metadata=@@global.innodb_stats_on_metadata;
|
||||
|
||||
|
||||
@ -332,8 +334,10 @@ drop table normal_table, zip_table;
|
||||
eval set global innodb_file_format=$format;
|
||||
eval set global innodb_file_per_table=$per_table;
|
||||
eval set session innodb_strict_mode=$innodb_strict_mode_orig;
|
||||
|
||||
eval SET GLOBAL innodb_file_format=$innodb_file_format_orig;
|
||||
eval SET GLOBAL innodb_file_format_max=$innodb_file_format_max_orig;
|
||||
SET @@global.innodb_stats_on_metadata=@save_innodb_stats_on_metadata;
|
||||
--enable_query_log
|
||||
|
||||
USE test;
|
||||
DROP DATABASE mysqltest_innodb_zip;
|
||||
|
@ -44,3 +44,8 @@ set global innodb_file_format_max = on;
|
||||
--error ER_WRONG_VALUE_FOR_VAR
|
||||
set global innodb_file_format_max = off;
|
||||
--enable_warnings
|
||||
|
||||
# Put the saved value back to 'innodb_file_format_max'
|
||||
--disable_query_log
|
||||
set global innodb_file_format_max = @old_innodb_file_format_max;
|
||||
--enable_query_log
|
||||
|
@ -2,6 +2,7 @@
|
||||
-- source include/have_innodb.inc
|
||||
|
||||
let $innodb_file_format_orig=`select @@innodb_file_format`;
|
||||
let $innodb_file_format_max_orig=`select @@innodb_file_format_max`;
|
||||
|
||||
select @@innodb_file_format;
|
||||
select @@innodb_file_format_check;
|
||||
@ -37,4 +38,7 @@ set global innodb_file_format_max=antelope;
|
||||
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
||||
set global innodb_file_format_check=off;
|
||||
|
||||
--disable_query_log
|
||||
eval SET GLOBAL innodb_file_format=$innodb_file_format_orig;
|
||||
eval SET GLOBAL innodb_file_format_max=$innodb_file_format_max_orig;
|
||||
--enable_query_log
|
||||
|
Reference in New Issue
Block a user