2009-06-10 19:21:20 +05:30
|
|
|
|
|
|
|
let $per_table=`select @@innodb_file_per_table`;
|
|
|
|
let $format=`select @@innodb_file_format`;
|
2010-06-17 22:51:35 +02:00
|
|
|
let $innodb_strict_mode_orig=`select @@session.innodb_strict_mode`;
|
|
|
|
|
|
|
|
set session innodb_strict_mode=0;
|
2009-06-10 19:21:20 +05:30
|
|
|
set global innodb_file_per_table=off;
|
|
|
|
set global innodb_file_format=`0`;
|
2010-06-17 22:51:35 +02:00
|
|
|
|
2009-06-10 19:21:20 +05:30
|
|
|
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 t2(a int primary key) engine=innodb row_format=redundant;
|
|
|
|
create table t3(a int primary key) engine=innodb row_format=compact;
|
|
|
|
create table t4(a int primary key) engine=innodb key_block_size=9;
|
|
|
|
create table t5(a int primary key) engine=innodb
|
|
|
|
key_block_size=1 row_format=redundant;
|
|
|
|
|
|
|
|
set global innodb_file_per_table=on;
|
|
|
|
create table t6(a int primary key) engine=innodb
|
|
|
|
key_block_size=1 row_format=redundant;
|
|
|
|
set global innodb_file_format=`1`;
|
|
|
|
create table t7(a int primary key) engine=innodb
|
|
|
|
key_block_size=1 row_format=redundant;
|
|
|
|
create table t8(a int primary key) engine=innodb
|
|
|
|
key_block_size=1 row_format=fixed;
|
|
|
|
create table t9(a int primary key) engine=innodb
|
|
|
|
key_block_size=1 row_format=compact;
|
|
|
|
create table t10(a int primary key) engine=innodb
|
|
|
|
key_block_size=1 row_format=dynamic;
|
|
|
|
create table t11(a int primary key) engine=innodb
|
|
|
|
key_block_size=1 row_format=compressed;
|
|
|
|
create table t12(a int primary key) engine=innodb
|
|
|
|
key_block_size=1;
|
|
|
|
create table t13(a int primary key) engine=innodb
|
|
|
|
row_format=compressed;
|
|
|
|
create table t14(a int primary key) engine=innodb key_block_size=9;
|
|
|
|
|
2011-08-08 11:22:18 +03:00
|
|
|
SELECT table_schema, table_name, row_format, data_length, index_length
|
2009-06-10 19:21:20 +05:30
|
|
|
FROM information_schema.tables WHERE engine='innodb';
|
|
|
|
|
|
|
|
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 row_format=dynamic;
|
2011-08-08 11:22:18 +03:00
|
|
|
SELECT table_schema, table_name, row_format, data_length, index_length
|
2009-06-10 19:21:20 +05:30
|
|
|
FROM information_schema.tables WHERE engine='innodb';
|
|
|
|
alter table t1 row_format=compact;
|
2011-08-08 11:22:18 +03:00
|
|
|
SELECT table_schema, table_name, row_format, data_length, index_length
|
2009-06-10 19:21:20 +05:30
|
|
|
FROM information_schema.tables WHERE engine='innodb';
|
|
|
|
alter table t1 row_format=redundant;
|
2011-08-08 11:22:18 +03:00
|
|
|
SELECT table_schema, table_name, row_format, data_length, index_length
|
2009-06-10 19:21:20 +05:30
|
|
|
FROM information_schema.tables WHERE engine='innodb';
|
|
|
|
drop table t1;
|
|
|
|
|
|
|
|
create table t1(a int not null, b text, index(b(10))) engine=innodb
|
|
|
|
key_block_size=1;
|
|
|
|
|
|
|
|
create table t2(b text)engine=innodb;
|
|
|
|
insert into t2 values(concat('1abcdefghijklmnopqrstuvwxyz', repeat('A',5000)));
|
|
|
|
|
|
|
|
insert into t1 select 1, b from t2;
|
|
|
|
commit;
|
|
|
|
|
|
|
|
connect (a,localhost,root,,);
|
|
|
|
connect (b,localhost,root,,);
|
|
|
|
|
|
|
|
connection a;
|
|
|
|
begin;
|
|
|
|
update t1 set b=repeat('B',100);
|
|
|
|
|
|
|
|
connection b;
|
|
|
|
select a,left(b,40) from t1 natural join t2;
|
|
|
|
|
|
|
|
connection a;
|
|
|
|
rollback;
|
|
|
|
|
|
|
|
connection b;
|
|
|
|
select a,left(b,40) from t1 natural join t2;
|
|
|
|
|
|
|
|
connection default;
|
|
|
|
disconnect a;
|
|
|
|
disconnect b;
|
|
|
|
|
2011-08-08 11:22:18 +03:00
|
|
|
SELECT table_schema, table_name, row_format, data_length, index_length
|
2009-06-10 19:21:20 +05:30
|
|
|
FROM information_schema.tables WHERE engine='innodb';
|
|
|
|
drop table t1,t2;
|
|
|
|
|
2010-04-22 14:24:42 +03:00
|
|
|
# The following should fail in non-strict mode too.
|
|
|
|
# (The fix of Bug #50945 only affects REDUNDANT and COMPACT tables.)
|
2009-06-10 19:21:20 +05:30
|
|
|
SET SESSION innodb_strict_mode = off;
|
|
|
|
--error ER_TOO_BIG_ROWSIZE
|
|
|
|
CREATE TABLE t1(
|
|
|
|
c TEXT NOT NULL, d TEXT NOT NULL,
|
|
|
|
PRIMARY KEY (c(767),d(767)))
|
|
|
|
ENGINE=InnoDB ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=1 CHARSET=ASCII;
|
|
|
|
--error ER_TOO_BIG_ROWSIZE
|
|
|
|
CREATE TABLE t1(
|
|
|
|
c TEXT NOT NULL, d TEXT NOT NULL,
|
|
|
|
PRIMARY KEY (c(767),d(767)))
|
|
|
|
ENGINE=InnoDB ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=2 CHARSET=ASCII;
|
|
|
|
CREATE TABLE t1(
|
|
|
|
c TEXT NOT NULL, d TEXT NOT NULL,
|
|
|
|
PRIMARY KEY (c(767),d(767)))
|
|
|
|
ENGINE=InnoDB ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=4 CHARSET=ASCII;
|
|
|
|
drop table t1;
|
|
|
|
--error ER_TOO_BIG_ROWSIZE
|
|
|
|
CREATE TABLE t1(c TEXT, PRIMARY KEY (c(440)))
|
|
|
|
ENGINE=InnoDB ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=1 CHARSET=ASCII;
|
Fixes to tests and their results, to account for differences between InnoDB 1.0.4 and the old builtin.
All committed result differences have either been verified by me or copied from Oracle's provided
results (storage/innodb_plugin/mysql-test/*.result, storage/innodb_plugin/mysql-test/patches).
mysql-test/r/information_schema.result:
queries changed a bit
mysql-test/r/information_schema_db.result:
queries changed a bit
mysql-test/r/innodb-autoinc.result:
importing piece from storage/innodb_plugin/mysql-test/innodb-autoinc.result
mysql-test/r/innodb.result:
result close to storage/innodb_plugin/innodb.result, except 4095 pages instead of 8191, which makes
sense as Summit runs with a buffer pool of 64M, whereas the mentioned result file was made with
a buffer pool of 128M.
mysql-test/r/mysqlshow.result:
InnoDB I_S tables have arrived
mysql-test/suite/funcs_1/r/is_columns_is.result:
queries changed a bit
mysql-test/suite/funcs_1/r/is_columns_is_embedded.result:
queries changed a bit
mysql-test/suite/funcs_1/r/is_tables_is.result:
queries changed a bit
mysql-test/suite/funcs_1/t/is_columns_is.test:
making I_S queries ignore InnoDB I_S tables
mysql-test/suite/funcs_1/t/is_columns_is_embedded.test:
making I_S queries ignore InnoDB I_S tables
mysql-test/suite/funcs_1/t/is_tables_is.test:
making I_S queries ignore InnoDB I_S tables
mysql-test/suite/innodb/r/innodb-zip.result:
result update
mysql-test/suite/innodb/t/innodb-zip.test:
439, as size of prefix key, throws error with certain system zlib (ubuntu
"intrepid") but not with zlib bundled with MySQL, because zlib's
compressBound() are different (and used by InnoDB's page_zip_empty_size()).
mysql-test/suite/sys_vars/r/innodb_file_per_table_basic.result:
result update
mysql-test/suite/sys_vars/r/innodb_lock_wait_timeout_basic.result:
result update
mysql-test/suite/sys_vars/r/innodb_sync_spin_loops_basic_32.result:
result update (default value is 30 in the plugin, 20 in the builtin)
mysql-test/suite/sys_vars/r/innodb_sync_spin_loops_basic_64.result:
result update (default value is 30 in the plugin, 20 in the builtin)
mysql-test/suite/sys_vars/r/table_definition_cache_basic.result:
result update (default value is 400 in Summit)
mysql-test/suite/sys_vars/t/innodb_file_per_table_basic.test:
variable is writable in the plugin (patch from Oracle)
mysql-test/suite/sys_vars/t/innodb_lock_wait_timeout_basic.test:
variable is per-session in the plugin (patch from Oracle)
mysql-test/t/information_schema.test:
making I_S queries ignore InnoDB I_S tables
mysql-test/t/information_schema_db.test:
making I_S queries ignore InnoDB I_S tables
mysql-test/t/innodb-autoinc.test:
importing piece from storage/innodb_plugin/mysql-test/innodb-autoinc.test
mysql-test/t/innodb.test:
importing most of storage/innodb_plugin/t/innodb.test. Most replace_result were not needed (no path printed), some where (for --embedded).
mysql-test/t/mysqlshow.test:
output of test now depends on InnoDB or not InnoDB. As there is no way to make mysqlshow
produce a single output in those two cases (no way to make it exclude InnoDB I_S
tables), let the test depend on InnoDB, it isn't a very selective condition, and the
test is simple enough.
storage/innobase/CMakeLists.txt:
thanks Vlad for the noticing () vs {}
2009-08-07 22:04:53 +02:00
|
|
|
CREATE TABLE t1(c TEXT, PRIMARY KEY (c(438)))
|
2009-06-10 19:21:20 +05:30
|
|
|
ENGINE=InnoDB ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=1 CHARSET=ASCII;
|
|
|
|
INSERT INTO t1 VALUES(REPEAT('A',512)),(REPEAT('B',512));
|
|
|
|
DROP TABLE t1;
|
|
|
|
|
|
|
|
#
|
|
|
|
# Test blob column inheritance (mantis issue#36)
|
|
|
|
#
|
|
|
|
|
|
|
|
create table t1( c1 int not null, c2 blob, c3 blob, c4 blob,
|
|
|
|
primary key(c1, c2(22), c3(22)))
|
|
|
|
engine = innodb row_format = dynamic;
|
|
|
|
begin;
|
|
|
|
insert into t1 values(1, repeat('A', 20000), repeat('B', 20000),
|
|
|
|
repeat('C', 20000));
|
|
|
|
|
|
|
|
update t1 set c3 = repeat('D', 20000) where c1 = 1;
|
|
|
|
commit;
|
|
|
|
|
|
|
|
# one blob column which is unchanged in update and part of PK
|
|
|
|
# one blob column which is changed and part of of PK
|
|
|
|
# one blob column which is not part of PK and is unchanged
|
|
|
|
select count(*) from t1 where c2 = repeat('A', 20000);
|
|
|
|
select count(*) from t1 where c3 = repeat('D', 20000);
|
|
|
|
select count(*) from t1 where c4 = repeat('C', 20000);
|
|
|
|
|
|
|
|
update t1 set c3 = repeat('E', 20000) where c1 = 1;
|
|
|
|
drop table t1;
|
|
|
|
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# Test innodb_file_format
|
|
|
|
#
|
|
|
|
set global innodb_file_format=`0`;
|
|
|
|
select @@innodb_file_format;
|
|
|
|
set global innodb_file_format=`1`;
|
|
|
|
select @@innodb_file_format;
|
2009-12-22 10:35:56 +01:00
|
|
|
-- error ER_WRONG_VALUE_FOR_VAR
|
2009-06-10 19:21:20 +05:30
|
|
|
set global innodb_file_format=`2`;
|
2009-12-22 10:35:56 +01:00
|
|
|
-- error ER_WRONG_VALUE_FOR_VAR
|
2009-06-10 19:21:20 +05:30
|
|
|
set global innodb_file_format=`-1`;
|
|
|
|
set global innodb_file_format=`Antelope`;
|
|
|
|
set global innodb_file_format=`Barracuda`;
|
2009-12-22 10:35:56 +01:00
|
|
|
-- error ER_WRONG_VALUE_FOR_VAR
|
2009-06-10 19:21:20 +05:30
|
|
|
set global innodb_file_format=`Cheetah`;
|
2009-12-22 10:35:56 +01:00
|
|
|
-- error ER_WRONG_VALUE_FOR_VAR
|
2009-06-10 19:21:20 +05:30
|
|
|
set global innodb_file_format=`abc`;
|
2009-12-22 10:35:56 +01:00
|
|
|
-- error ER_WRONG_VALUE_FOR_VAR
|
2009-06-10 19:21:20 +05:30
|
|
|
set global innodb_file_format=`1a`;
|
2009-12-22 10:35:56 +01:00
|
|
|
-- error ER_WRONG_VALUE_FOR_VAR
|
2009-06-10 19:21:20 +05:30
|
|
|
set global innodb_file_format=``;
|
|
|
|
|
|
|
|
#test strict mode.
|
|
|
|
# this does not work anymore, has been removed from mysqltest
|
|
|
|
# -- enable_errors
|
|
|
|
set global innodb_file_per_table = on;
|
|
|
|
set global innodb_file_format = `1`;
|
|
|
|
|
|
|
|
set innodb_strict_mode = off;
|
|
|
|
create table t1 (id int primary key) engine = innodb key_block_size = 0;
|
|
|
|
drop table t1;
|
|
|
|
|
|
|
|
#set strict_mode
|
|
|
|
set innodb_strict_mode = on;
|
|
|
|
|
|
|
|
#Test different values of KEY_BLOCK_SIZE
|
|
|
|
|
|
|
|
create table t1 (id int primary key) engine = innodb key_block_size = 0;
|
|
|
|
|
|
|
|
--error ER_CANT_CREATE_TABLE
|
|
|
|
create table t2 (id int primary key) engine = innodb key_block_size = 9;
|
2009-11-03 14:20:18 +04:00
|
|
|
show warnings;
|
2009-06-10 19:21:20 +05:30
|
|
|
|
|
|
|
|
|
|
|
create table t3 (id int primary key) engine = innodb key_block_size = 1;
|
|
|
|
create table t4 (id int primary key) engine = innodb key_block_size = 2;
|
|
|
|
create table t5 (id int primary key) engine = innodb key_block_size = 4;
|
|
|
|
create table t6 (id int primary key) engine = innodb key_block_size = 8;
|
|
|
|
create table t7 (id int primary key) engine = innodb key_block_size = 16;
|
|
|
|
|
|
|
|
#check various ROW_FORMAT values.
|
|
|
|
create table t8 (id int primary key) engine = innodb row_format = compressed;
|
|
|
|
create table t9 (id int primary key) engine = innodb row_format = dynamic;
|
|
|
|
create table t10(id int primary key) engine = innodb row_format = compact;
|
|
|
|
create table t11(id int primary key) engine = innodb row_format = redundant;
|
|
|
|
|
2011-08-08 11:22:18 +03:00
|
|
|
SELECT table_schema, table_name, row_format, data_length, index_length
|
2009-06-10 19:21:20 +05:30
|
|
|
FROM information_schema.tables WHERE engine='innodb';
|
2010-11-02 16:54:23 -05:00
|
|
|
drop table t1, t3, t4, t5, t6, t7, t8, t9, t10, t11;
|
2009-06-10 19:21:20 +05:30
|
|
|
|
|
|
|
#test different values of ROW_FORMAT with KEY_BLOCK_SIZE
|
|
|
|
create table t1 (id int primary key) engine = innodb
|
|
|
|
key_block_size = 8 row_format = compressed;
|
|
|
|
|
|
|
|
--error ER_CANT_CREATE_TABLE
|
|
|
|
create table t2 (id int primary key) engine = innodb
|
|
|
|
key_block_size = 8 row_format = redundant;
|
2009-11-03 14:20:18 +04:00
|
|
|
show warnings;
|
2009-06-10 19:21:20 +05:30
|
|
|
|
|
|
|
--error ER_CANT_CREATE_TABLE
|
|
|
|
create table t3 (id int primary key) engine = innodb
|
|
|
|
key_block_size = 8 row_format = compact;
|
2009-11-03 14:20:18 +04:00
|
|
|
show warnings;
|
2009-06-10 19:21:20 +05:30
|
|
|
|
|
|
|
--error ER_CANT_CREATE_TABLE
|
|
|
|
create table t4 (id int primary key) engine = innodb
|
|
|
|
key_block_size = 8 row_format = dynamic;
|
2009-11-03 14:20:18 +04:00
|
|
|
show warnings;
|
2009-06-10 19:21:20 +05:30
|
|
|
|
|
|
|
create table t5 (id int primary key) engine = innodb
|
|
|
|
key_block_size = 8 row_format = default;
|
|
|
|
|
2011-08-08 11:22:18 +03:00
|
|
|
SELECT table_schema, table_name, row_format, data_length, index_length
|
2009-06-10 19:21:20 +05:30
|
|
|
FROM information_schema.tables WHERE engine='innodb';
|
2010-11-02 16:54:23 -05:00
|
|
|
drop table t1, t5;
|
2009-06-10 19:21:20 +05:30
|
|
|
|
|
|
|
#test multiple errors
|
|
|
|
--error ER_CANT_CREATE_TABLE
|
|
|
|
create table t1 (id int primary key) engine = innodb
|
|
|
|
key_block_size = 9 row_format = redundant;
|
2009-11-03 14:20:18 +04:00
|
|
|
show warnings;
|
2009-06-10 19:21:20 +05:30
|
|
|
|
|
|
|
--error ER_CANT_CREATE_TABLE
|
|
|
|
create table t2 (id int primary key) engine = innodb
|
|
|
|
key_block_size = 9 row_format = compact;
|
2009-11-03 14:20:18 +04:00
|
|
|
show warnings;
|
2009-06-10 19:21:20 +05:30
|
|
|
|
|
|
|
--error ER_CANT_CREATE_TABLE
|
|
|
|
create table t2 (id int primary key) engine = innodb
|
|
|
|
key_block_size = 9 row_format = dynamic;
|
2009-11-03 14:20:18 +04:00
|
|
|
show warnings;
|
2009-06-10 19:21:20 +05:30
|
|
|
|
2011-08-08 11:22:18 +03:00
|
|
|
SELECT table_schema, table_name, row_format, data_length, index_length
|
2009-06-10 19:21:20 +05:30
|
|
|
FROM information_schema.tables WHERE engine='innodb';
|
|
|
|
|
|
|
|
#test valid values with innodb_file_per_table unset
|
|
|
|
set global innodb_file_per_table = off;
|
|
|
|
|
|
|
|
--error ER_CANT_CREATE_TABLE
|
|
|
|
create table t1 (id int primary key) engine = innodb key_block_size = 1;
|
2009-11-03 14:20:18 +04:00
|
|
|
show warnings;
|
2009-06-10 19:21:20 +05:30
|
|
|
--error ER_CANT_CREATE_TABLE
|
|
|
|
create table t2 (id int primary key) engine = innodb key_block_size = 2;
|
2009-11-03 14:20:18 +04:00
|
|
|
show warnings;
|
2009-06-10 19:21:20 +05:30
|
|
|
--error ER_CANT_CREATE_TABLE
|
|
|
|
create table t3 (id int primary key) engine = innodb key_block_size = 4;
|
2009-11-03 14:20:18 +04:00
|
|
|
show warnings;
|
2009-06-10 19:21:20 +05:30
|
|
|
--error ER_CANT_CREATE_TABLE
|
|
|
|
create table t4 (id int primary key) engine = innodb key_block_size = 8;
|
2009-11-03 14:20:18 +04:00
|
|
|
show warnings;
|
2009-06-10 19:21:20 +05:30
|
|
|
--error ER_CANT_CREATE_TABLE
|
|
|
|
create table t5 (id int primary key) engine = innodb key_block_size = 16;
|
2009-11-03 14:20:18 +04:00
|
|
|
show warnings;
|
2009-06-10 19:21:20 +05:30
|
|
|
--error ER_CANT_CREATE_TABLE
|
|
|
|
create table t6 (id int primary key) engine = innodb row_format = compressed;
|
2009-11-03 14:20:18 +04:00
|
|
|
show warnings;
|
2009-06-10 19:21:20 +05:30
|
|
|
--error ER_CANT_CREATE_TABLE
|
|
|
|
create table t7 (id int primary key) engine = innodb row_format = dynamic;
|
2009-11-03 14:20:18 +04:00
|
|
|
show warnings;
|
2009-06-10 19:21:20 +05:30
|
|
|
create table t8 (id int primary key) engine = innodb row_format = compact;
|
|
|
|
create table t9 (id int primary key) engine = innodb row_format = redundant;
|
|
|
|
|
2011-08-08 11:22:18 +03:00
|
|
|
SELECT table_schema, table_name, row_format, data_length, index_length
|
2009-06-10 19:21:20 +05:30
|
|
|
FROM information_schema.tables WHERE engine='innodb';
|
|
|
|
drop table t8, t9;
|
|
|
|
|
|
|
|
#test valid values with innodb_file_format unset
|
|
|
|
set global innodb_file_per_table = on;
|
|
|
|
set global innodb_file_format = `0`;
|
|
|
|
|
|
|
|
--error ER_CANT_CREATE_TABLE
|
|
|
|
create table t1 (id int primary key) engine = innodb key_block_size = 1;
|
2009-11-03 14:20:18 +04:00
|
|
|
show warnings;
|
2009-06-10 19:21:20 +05:30
|
|
|
--error ER_CANT_CREATE_TABLE
|
|
|
|
create table t2 (id int primary key) engine = innodb key_block_size = 2;
|
2009-11-03 14:20:18 +04:00
|
|
|
show warnings;
|
2009-06-10 19:21:20 +05:30
|
|
|
--error ER_CANT_CREATE_TABLE
|
|
|
|
create table t3 (id int primary key) engine = innodb key_block_size = 4;
|
2009-11-03 14:20:18 +04:00
|
|
|
show warnings;
|
2009-06-10 19:21:20 +05:30
|
|
|
--error ER_CANT_CREATE_TABLE
|
|
|
|
create table t4 (id int primary key) engine = innodb key_block_size = 8;
|
2009-11-03 14:20:18 +04:00
|
|
|
show warnings;
|
2009-06-10 19:21:20 +05:30
|
|
|
--error ER_CANT_CREATE_TABLE
|
|
|
|
create table t5 (id int primary key) engine = innodb key_block_size = 16;
|
2009-11-03 14:20:18 +04:00
|
|
|
show warnings;
|
2009-06-10 19:21:20 +05:30
|
|
|
--error ER_CANT_CREATE_TABLE
|
|
|
|
create table t6 (id int primary key) engine = innodb row_format = compressed;
|
2009-11-03 14:20:18 +04:00
|
|
|
show warnings;
|
2009-06-10 19:21:20 +05:30
|
|
|
--error ER_CANT_CREATE_TABLE
|
|
|
|
create table t7 (id int primary key) engine = innodb row_format = dynamic;
|
2009-11-03 14:20:18 +04:00
|
|
|
show warnings;
|
2009-06-10 19:21:20 +05:30
|
|
|
create table t8 (id int primary key) engine = innodb row_format = compact;
|
|
|
|
create table t9 (id int primary key) engine = innodb row_format = redundant;
|
|
|
|
|
2011-08-08 11:22:18 +03:00
|
|
|
SELECT table_schema, table_name, row_format, data_length, index_length
|
2009-06-10 19:21:20 +05:30
|
|
|
FROM information_schema.tables WHERE engine='innodb';
|
|
|
|
drop table t8, t9;
|
|
|
|
|
|
|
|
eval set global innodb_file_per_table=$per_table;
|
|
|
|
eval set global innodb_file_format=$format;
|
|
|
|
#
|
|
|
|
# Testing of tablespace tagging
|
|
|
|
#
|
|
|
|
-- disable_info
|
|
|
|
set global innodb_file_per_table=on;
|
|
|
|
set global innodb_file_format=`Barracuda`;
|
2010-06-17 02:13:53 -07:00
|
|
|
set global innodb_file_format_max=`Antelope`;
|
2009-06-10 19:21:20 +05:30
|
|
|
create table normal_table (
|
|
|
|
c1 int
|
|
|
|
) engine = innodb;
|
2010-06-17 02:13:53 -07:00
|
|
|
select @@innodb_file_format_max;
|
2009-06-10 19:21:20 +05:30
|
|
|
create table zip_table (
|
|
|
|
c1 int
|
|
|
|
) engine = innodb key_block_size = 8;
|
2010-06-17 02:13:53 -07:00
|
|
|
select @@innodb_file_format_max;
|
|
|
|
set global innodb_file_format_max=`Antelope`;
|
|
|
|
select @@innodb_file_format_max;
|
2009-06-10 19:21:20 +05:30
|
|
|
-- disable_result_log
|
|
|
|
show table status;
|
|
|
|
-- enable_result_log
|
2010-06-17 02:13:53 -07:00
|
|
|
select @@innodb_file_format_max;
|
2009-06-10 19:21:20 +05:30
|
|
|
drop table normal_table, zip_table;
|
|
|
|
-- disable_result_log
|
|
|
|
|
|
|
|
#
|
|
|
|
# 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_per_table=$per_table;
|
2010-06-17 22:51:35 +02:00
|
|
|
eval set session innodb_strict_mode=$innodb_strict_mode_orig;
|