Commit 28d976b5 authored by marko's avatar marko

branches/zip: innodb-zip.test: Add tests for warnings about

ROW_FORMAT=COMPRESSED when neither innodb_file_per_table nor
innodb_file_format are set.
parent 7afea563
set global innodb_file_per_table=off; set global innodb_file_per_table=off;
set global innodb_file_format=0; set global innodb_file_format=0;
create table t0(a int primary key) engine=innodb row_format=compressed;
Warnings:
Warning 1478 InnoDB: ROW_FORMAT=COMPRESSED requires innodb_file_per_table.
Warning 1478 InnoDB: assuming ROW_FORMAT=COMPACT.
create table t00(a int primary key) engine=innodb
key_block_size=4 row_format=compressed;
Warnings:
Warning 1478 InnoDB: KEY_BLOCK_SIZE requires innodb_file_per_table.
Warning 1478 InnoDB: KEY_BLOCK_SIZE requires innodb_file_format>0.
Warning 1478 InnoDB: ignoring KEY_BLOCK_SIZE=4.
Warning 1478 InnoDB: ROW_FORMAT=COMPRESSED requires innodb_file_per_table.
Warning 1478 InnoDB: assuming ROW_FORMAT=COMPACT.
create table t1(a int primary key) engine=innodb row_format=dynamic; create table t1(a int primary key) engine=innodb row_format=dynamic;
Warnings: Warnings:
Warning 1478 InnoDB: ROW_FORMAT=DYNAMIC requires innodb_file_per_table. Warning 1478 InnoDB: ROW_FORMAT=DYNAMIC requires innodb_file_per_table.
...@@ -53,6 +65,8 @@ Warning 1478 InnoDB: ignoring KEY_BLOCK_SIZE=9. ...@@ -53,6 +65,8 @@ Warning 1478 InnoDB: ignoring KEY_BLOCK_SIZE=9.
SELECT table_schema, table_name, row_format SELECT table_schema, table_name, row_format
FROM information_schema.tables WHERE engine='innodb'; FROM information_schema.tables WHERE engine='innodb';
table_schema table_name row_format table_schema table_name row_format
test t0 Compact
test t00 Compact
test t1 Compact test t1 Compact
test t10 Dynamic test t10 Dynamic
test t11 Compressed test t11 Compressed
...@@ -67,7 +81,7 @@ test t6 Redundant ...@@ -67,7 +81,7 @@ test t6 Redundant
test t7 Redundant test t7 Redundant
test t8 Compact test t8 Compact
test t9 Compact test t9 Compact
drop table t2,t3,t4,t5,t6,t7,t8,t9,t10,t11,t12,t13,t14; drop table t0,t00,t2,t3,t4,t5,t6,t7,t8,t9,t10,t11,t12,t13,t14;
alter table t1 key_block_size=0; alter table t1 key_block_size=0;
Warnings: Warnings:
Warning 1478 InnoDB: ignoring KEY_BLOCK_SIZE=0. Warning 1478 InnoDB: ignoring KEY_BLOCK_SIZE=0.
......
...@@ -5,6 +5,9 @@ let $format=`select @@innodb_file_format`; ...@@ -5,6 +5,9 @@ let $format=`select @@innodb_file_format`;
set global innodb_file_per_table=off; set global innodb_file_per_table=off;
set global innodb_file_format=0; set global innodb_file_format=0;
create table t0(a int primary key) engine=innodb row_format=compressed;
create table t00(a int primary key) engine=innodb
key_block_size=4 row_format=compressed;
create table t1(a int primary key) engine=innodb row_format=dynamic; create table t1(a int primary key) engine=innodb row_format=dynamic;
create table t2(a int primary key) engine=innodb row_format=redundant; create table t2(a int primary key) engine=innodb row_format=redundant;
create table t3(a int primary key) engine=innodb row_format=compact; create table t3(a int primary key) engine=innodb row_format=compact;
...@@ -35,7 +38,7 @@ create table t14(a int primary key) engine=innodb key_block_size=9; ...@@ -35,7 +38,7 @@ create table t14(a int primary key) engine=innodb key_block_size=9;
SELECT table_schema, table_name, row_format SELECT table_schema, table_name, row_format
FROM information_schema.tables WHERE engine='innodb'; FROM information_schema.tables WHERE engine='innodb';
drop table t2,t3,t4,t5,t6,t7,t8,t9,t10,t11,t12,t13,t14; drop table t0,t00,t2,t3,t4,t5,t6,t7,t8,t9,t10,t11,t12,t13,t14;
alter table t1 key_block_size=0; alter table t1 key_block_size=0;
alter table t1 row_format=dynamic; alter table t1 row_format=dynamic;
SELECT table_schema, table_name, row_format SELECT table_schema, table_name, row_format
......
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