You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

343 lines
11 KiB

WL#4738 streamline/simplify @@variable creation process Bug#16565 mysqld --help --verbose does not order variablesBug#20413 sql_slave_skip_counter is not shown in show variables Bug#20415 Output of mysqld --help --verbose is incomplete Bug#25430 variable not found in SELECT @@global.ft_max_word_len; Bug#32902 plugin variables don't know their names Bug#34599 MySQLD Option and Variable Reference need to be consistent in formatting! Bug#34829 No default value for variable and setting default does not raise error Bug#34834 ? Is accepted as a valid sql mode Bug#34878 Few variables have default value according to documentation but error occurs Bug#34883 ft_boolean_syntax cant be assigned from user variable to global var. Bug#37187 `INFORMATION_SCHEMA`.`GLOBAL_VARIABLES`: inconsistent status Bug#40988 log_output_basic.test succeeded though syntactically false. Bug#41010 enum-style command-line options are not honoured (maria.maria-recover fails) Bug#42103 Setting key_buffer_size to a negative value may lead to very large allocations Bug#44691 Some plugins configured as MYSQL_PLUGIN_MANDATORY in can be disabled Bug#44797 plugins w/o command-line options have no disabling option in --help Bug#46314 string system variables don't support expressions Bug#46470 sys_vars.max_binlog_cache_size_basic_32 is broken Bug#46586 When using the plugin interface the type "set" for options caused a crash. Bug#47212 Crash in DBUG_PRINT in mysqltest.cc when trying to print octal number Bug#48758 mysqltest crashes on sys_vars.collation_server_basic in gcov builds Bug#49417 some complaints about mysqld --help --verbose output Bug#49540 DEFAULT value of binlog_format isn't the default value Bug#49640 ambiguous option '--skip-skip-myisam' (double skip prefix) Bug#49644 init_connect and \0 Bug#49645 init_slave and multi-byte characters Bug#49646 mysql --show-warnings crashes when server dies
16 years ago
WL#4738 streamline/simplify @@variable creation process Bug#16565 mysqld --help --verbose does not order variablesBug#20413 sql_slave_skip_counter is not shown in show variables Bug#20415 Output of mysqld --help --verbose is incomplete Bug#25430 variable not found in SELECT @@global.ft_max_word_len; Bug#32902 plugin variables don't know their names Bug#34599 MySQLD Option and Variable Reference need to be consistent in formatting! Bug#34829 No default value for variable and setting default does not raise error Bug#34834 ? Is accepted as a valid sql mode Bug#34878 Few variables have default value according to documentation but error occurs Bug#34883 ft_boolean_syntax cant be assigned from user variable to global var. Bug#37187 `INFORMATION_SCHEMA`.`GLOBAL_VARIABLES`: inconsistent status Bug#40988 log_output_basic.test succeeded though syntactically false. Bug#41010 enum-style command-line options are not honoured (maria.maria-recover fails) Bug#42103 Setting key_buffer_size to a negative value may lead to very large allocations Bug#44691 Some plugins configured as MYSQL_PLUGIN_MANDATORY in can be disabled Bug#44797 plugins w/o command-line options have no disabling option in --help Bug#46314 string system variables don't support expressions Bug#46470 sys_vars.max_binlog_cache_size_basic_32 is broken Bug#46586 When using the plugin interface the type "set" for options caused a crash. Bug#47212 Crash in DBUG_PRINT in mysqltest.cc when trying to print octal number Bug#48758 mysqltest crashes on sys_vars.collation_server_basic in gcov builds Bug#49417 some complaints about mysqld --help --verbose output Bug#49540 DEFAULT value of binlog_format isn't the default value Bug#49640 ambiguous option '--skip-skip-myisam' (double skip prefix) Bug#49644 init_connect and \0 Bug#49645 init_slave and multi-byte characters Bug#49646 mysql --show-warnings crashes when server dies
16 years ago
WL#4738 streamline/simplify @@variable creation process Bug#16565 mysqld --help --verbose does not order variablesBug#20413 sql_slave_skip_counter is not shown in show variables Bug#20415 Output of mysqld --help --verbose is incomplete Bug#25430 variable not found in SELECT @@global.ft_max_word_len; Bug#32902 plugin variables don't know their names Bug#34599 MySQLD Option and Variable Reference need to be consistent in formatting! Bug#34829 No default value for variable and setting default does not raise error Bug#34834 ? Is accepted as a valid sql mode Bug#34878 Few variables have default value according to documentation but error occurs Bug#34883 ft_boolean_syntax cant be assigned from user variable to global var. Bug#37187 `INFORMATION_SCHEMA`.`GLOBAL_VARIABLES`: inconsistent status Bug#40988 log_output_basic.test succeeded though syntactically false. Bug#41010 enum-style command-line options are not honoured (maria.maria-recover fails) Bug#42103 Setting key_buffer_size to a negative value may lead to very large allocations Bug#44691 Some plugins configured as MYSQL_PLUGIN_MANDATORY in can be disabled Bug#44797 plugins w/o command-line options have no disabling option in --help Bug#46314 string system variables don't support expressions Bug#46470 sys_vars.max_binlog_cache_size_basic_32 is broken Bug#46586 When using the plugin interface the type "set" for options caused a crash. Bug#47212 Crash in DBUG_PRINT in mysqltest.cc when trying to print octal number Bug#48758 mysqltest crashes on sys_vars.collation_server_basic in gcov builds Bug#49417 some complaints about mysqld --help --verbose output Bug#49540 DEFAULT value of binlog_format isn't the default value Bug#49640 ambiguous option '--skip-skip-myisam' (double skip prefix) Bug#49644 init_connect and \0 Bug#49645 init_slave and multi-byte characters Bug#49646 mysql --show-warnings crashes when server dies
16 years ago
WL#4738 streamline/simplify @@variable creation process Bug#16565 mysqld --help --verbose does not order variablesBug#20413 sql_slave_skip_counter is not shown in show variables Bug#20415 Output of mysqld --help --verbose is incomplete Bug#25430 variable not found in SELECT @@global.ft_max_word_len; Bug#32902 plugin variables don't know their names Bug#34599 MySQLD Option and Variable Reference need to be consistent in formatting! Bug#34829 No default value for variable and setting default does not raise error Bug#34834 ? Is accepted as a valid sql mode Bug#34878 Few variables have default value according to documentation but error occurs Bug#34883 ft_boolean_syntax cant be assigned from user variable to global var. Bug#37187 `INFORMATION_SCHEMA`.`GLOBAL_VARIABLES`: inconsistent status Bug#40988 log_output_basic.test succeeded though syntactically false. Bug#41010 enum-style command-line options are not honoured (maria.maria-recover fails) Bug#42103 Setting key_buffer_size to a negative value may lead to very large allocations Bug#44691 Some plugins configured as MYSQL_PLUGIN_MANDATORY in can be disabled Bug#44797 plugins w/o command-line options have no disabling option in --help Bug#46314 string system variables don't support expressions Bug#46470 sys_vars.max_binlog_cache_size_basic_32 is broken Bug#46586 When using the plugin interface the type "set" for options caused a crash. Bug#47212 Crash in DBUG_PRINT in mysqltest.cc when trying to print octal number Bug#48758 mysqltest crashes on sys_vars.collation_server_basic in gcov builds Bug#49417 some complaints about mysqld --help --verbose output Bug#49540 DEFAULT value of binlog_format isn't the default value Bug#49640 ambiguous option '--skip-skip-myisam' (double skip prefix) Bug#49644 init_connect and \0 Bug#49645 init_slave and multi-byte characters Bug#49646 mysql --show-warnings crashes when server dies
16 years ago
WL#4738 streamline/simplify @@variable creation process Bug#16565 mysqld --help --verbose does not order variablesBug#20413 sql_slave_skip_counter is not shown in show variables Bug#20415 Output of mysqld --help --verbose is incomplete Bug#25430 variable not found in SELECT @@global.ft_max_word_len; Bug#32902 plugin variables don't know their names Bug#34599 MySQLD Option and Variable Reference need to be consistent in formatting! Bug#34829 No default value for variable and setting default does not raise error Bug#34834 ? Is accepted as a valid sql mode Bug#34878 Few variables have default value according to documentation but error occurs Bug#34883 ft_boolean_syntax cant be assigned from user variable to global var. Bug#37187 `INFORMATION_SCHEMA`.`GLOBAL_VARIABLES`: inconsistent status Bug#40988 log_output_basic.test succeeded though syntactically false. Bug#41010 enum-style command-line options are not honoured (maria.maria-recover fails) Bug#42103 Setting key_buffer_size to a negative value may lead to very large allocations Bug#44691 Some plugins configured as MYSQL_PLUGIN_MANDATORY in can be disabled Bug#44797 plugins w/o command-line options have no disabling option in --help Bug#46314 string system variables don't support expressions Bug#46470 sys_vars.max_binlog_cache_size_basic_32 is broken Bug#46586 When using the plugin interface the type "set" for options caused a crash. Bug#47212 Crash in DBUG_PRINT in mysqltest.cc when trying to print octal number Bug#48758 mysqltest crashes on sys_vars.collation_server_basic in gcov builds Bug#49417 some complaints about mysqld --help --verbose output Bug#49540 DEFAULT value of binlog_format isn't the default value Bug#49640 ambiguous option '--skip-skip-myisam' (double skip prefix) Bug#49644 init_connect and \0 Bug#49645 init_slave and multi-byte characters Bug#49646 mysql --show-warnings crashes when server dies
16 years ago
WL#4738 streamline/simplify @@variable creation process Bug#16565 mysqld --help --verbose does not order variablesBug#20413 sql_slave_skip_counter is not shown in show variables Bug#20415 Output of mysqld --help --verbose is incomplete Bug#25430 variable not found in SELECT @@global.ft_max_word_len; Bug#32902 plugin variables don't know their names Bug#34599 MySQLD Option and Variable Reference need to be consistent in formatting! Bug#34829 No default value for variable and setting default does not raise error Bug#34834 ? Is accepted as a valid sql mode Bug#34878 Few variables have default value according to documentation but error occurs Bug#34883 ft_boolean_syntax cant be assigned from user variable to global var. Bug#37187 `INFORMATION_SCHEMA`.`GLOBAL_VARIABLES`: inconsistent status Bug#40988 log_output_basic.test succeeded though syntactically false. Bug#41010 enum-style command-line options are not honoured (maria.maria-recover fails) Bug#42103 Setting key_buffer_size to a negative value may lead to very large allocations Bug#44691 Some plugins configured as MYSQL_PLUGIN_MANDATORY in can be disabled Bug#44797 plugins w/o command-line options have no disabling option in --help Bug#46314 string system variables don't support expressions Bug#46470 sys_vars.max_binlog_cache_size_basic_32 is broken Bug#46586 When using the plugin interface the type "set" for options caused a crash. Bug#47212 Crash in DBUG_PRINT in mysqltest.cc when trying to print octal number Bug#48758 mysqltest crashes on sys_vars.collation_server_basic in gcov builds Bug#49417 some complaints about mysqld --help --verbose output Bug#49540 DEFAULT value of binlog_format isn't the default value Bug#49640 ambiguous option '--skip-skip-myisam' (double skip prefix) Bug#49644 init_connect and \0 Bug#49645 init_slave and multi-byte characters Bug#49646 mysql --show-warnings crashes when server dies
16 years ago
  1. -- source include/have_innodb.inc
  2. let $per_table=`select @@innodb_file_per_table`;
  3. let $format=`select @@innodb_file_format`;
  4. let $innodb_file_format_check_orig=`select @@innodb_file_format_check`;
  5. set global innodb_file_per_table=off;
  6. set global innodb_file_format=`0`;
  7. create table t0(a int primary key) engine=innodb row_format=compressed;
  8. create table t00(a int primary key) engine=innodb
  9. key_block_size=4 row_format=compressed;
  10. create table t1(a int primary key) engine=innodb row_format=dynamic;
  11. create table t2(a int primary key) engine=innodb row_format=redundant;
  12. create table t3(a int primary key) engine=innodb row_format=compact;
  13. create table t4(a int primary key) engine=innodb key_block_size=9;
  14. create table t5(a int primary key) engine=innodb
  15. key_block_size=1 row_format=redundant;
  16. set global innodb_file_per_table=on;
  17. create table t6(a int primary key) engine=innodb
  18. key_block_size=1 row_format=redundant;
  19. set global innodb_file_format=`1`;
  20. create table t7(a int primary key) engine=innodb
  21. key_block_size=1 row_format=redundant;
  22. create table t8(a int primary key) engine=innodb
  23. key_block_size=1 row_format=fixed;
  24. create table t9(a int primary key) engine=innodb
  25. key_block_size=1 row_format=compact;
  26. create table t10(a int primary key) engine=innodb
  27. key_block_size=1 row_format=dynamic;
  28. create table t11(a int primary key) engine=innodb
  29. key_block_size=1 row_format=compressed;
  30. create table t12(a int primary key) engine=innodb
  31. key_block_size=1;
  32. create table t13(a int primary key) engine=innodb
  33. row_format=compressed;
  34. create table t14(a int primary key) engine=innodb key_block_size=9;
  35. SELECT table_schema, table_name, row_format
  36. FROM information_schema.tables WHERE engine='innodb';
  37. drop table t0,t00,t2,t3,t4,t5,t6,t7,t8,t9,t10,t11,t12,t13,t14;
  38. alter table t1 key_block_size=0;
  39. alter table t1 row_format=dynamic;
  40. SELECT table_schema, table_name, row_format
  41. FROM information_schema.tables WHERE engine='innodb';
  42. alter table t1 row_format=compact;
  43. SELECT table_schema, table_name, row_format
  44. FROM information_schema.tables WHERE engine='innodb';
  45. alter table t1 row_format=redundant;
  46. SELECT table_schema, table_name, row_format
  47. FROM information_schema.tables WHERE engine='innodb';
  48. drop table t1;
  49. create table t1(a int not null, b text, index(b(10))) engine=innodb
  50. key_block_size=1;
  51. create table t2(b text)engine=innodb;
  52. insert into t2 values(concat('1abcdefghijklmnopqrstuvwxyz', repeat('A',5000)));
  53. insert into t1 select 1, b from t2;
  54. commit;
  55. connect (a,localhost,root,,);
  56. connect (b,localhost,root,,);
  57. connection a;
  58. begin;
  59. update t1 set b=repeat('B',100);
  60. connection b;
  61. select a,left(b,40) from t1 natural join t2;
  62. connection a;
  63. rollback;
  64. connection b;
  65. select a,left(b,40) from t1 natural join t2;
  66. connection default;
  67. disconnect a;
  68. disconnect b;
  69. SELECT table_schema, table_name, row_format
  70. FROM information_schema.tables WHERE engine='innodb';
  71. drop table t1,t2;
  72. # The following should fail even in non-strict mode.
  73. SET SESSION innodb_strict_mode = off;
  74. --error ER_TOO_BIG_ROWSIZE
  75. CREATE TABLE t1(
  76. c TEXT NOT NULL, d TEXT NOT NULL,
  77. PRIMARY KEY (c(767),d(767)))
  78. ENGINE=InnoDB ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=1 CHARSET=ASCII;
  79. --error ER_TOO_BIG_ROWSIZE
  80. CREATE TABLE t1(
  81. c TEXT NOT NULL, d TEXT NOT NULL,
  82. PRIMARY KEY (c(767),d(767)))
  83. ENGINE=InnoDB ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=2 CHARSET=ASCII;
  84. CREATE TABLE t1(
  85. c TEXT NOT NULL, d TEXT NOT NULL,
  86. PRIMARY KEY (c(767),d(767)))
  87. ENGINE=InnoDB ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=4 CHARSET=ASCII;
  88. drop table t1;
  89. --error ER_TOO_BIG_ROWSIZE
  90. CREATE TABLE t1(c TEXT, PRIMARY KEY (c(440)))
  91. ENGINE=InnoDB ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=1 CHARSET=ASCII;
  92. CREATE TABLE t1(c TEXT, PRIMARY KEY (c(438)))
  93. ENGINE=InnoDB ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=1 CHARSET=ASCII;
  94. INSERT INTO t1 VALUES(REPEAT('A',512)),(REPEAT('B',512));
  95. DROP TABLE t1;
  96. #
  97. # Test blob column inheritance (mantis issue#36)
  98. #
  99. create table t1( c1 int not null, c2 blob, c3 blob, c4 blob,
  100. primary key(c1, c2(22), c3(22)))
  101. engine = innodb row_format = dynamic;
  102. begin;
  103. insert into t1 values(1, repeat('A', 20000), repeat('B', 20000),
  104. repeat('C', 20000));
  105. update t1 set c3 = repeat('D', 20000) where c1 = 1;
  106. commit;
  107. # one blob column which is unchanged in update and part of PK
  108. # one blob column which is changed and part of of PK
  109. # one blob column which is not part of PK and is unchanged
  110. select count(*) from t1 where c2 = repeat('A', 20000);
  111. select count(*) from t1 where c3 = repeat('D', 20000);
  112. select count(*) from t1 where c4 = repeat('C', 20000);
  113. update t1 set c3 = repeat('E', 20000) where c1 = 1;
  114. drop table t1;
  115. #
  116. #
  117. # Test innodb_file_format
  118. #
  119. set global innodb_file_format=`0`;
  120. select @@innodb_file_format;
  121. set global innodb_file_format=`1`;
  122. select @@innodb_file_format;
  123. -- error ER_WRONG_VALUE_FOR_VAR
  124. set global innodb_file_format=`2`;
  125. -- error ER_WRONG_VALUE_FOR_VAR
  126. set global innodb_file_format=`-1`;
  127. set global innodb_file_format=`Antelope`;
  128. set global innodb_file_format=`Barracuda`;
  129. -- error ER_WRONG_VALUE_FOR_VAR
  130. set global innodb_file_format=`Cheetah`;
  131. -- error ER_WRONG_VALUE_FOR_VAR
  132. set global innodb_file_format=`abc`;
  133. -- error ER_WRONG_VALUE_FOR_VAR
  134. set global innodb_file_format=`1a`;
  135. -- error ER_WRONG_VALUE_FOR_VAR
  136. set global innodb_file_format=``;
  137. #test strict mode.
  138. # this does not work anymore, has been removed from mysqltest
  139. # -- enable_errors
  140. set global innodb_file_per_table = on;
  141. set global innodb_file_format = `1`;
  142. set innodb_strict_mode = off;
  143. create table t1 (id int primary key) engine = innodb key_block_size = 0;
  144. drop table t1;
  145. #set strict_mode
  146. set innodb_strict_mode = on;
  147. #Test different values of KEY_BLOCK_SIZE
  148. --error ER_CANT_CREATE_TABLE
  149. create table t1 (id int primary key) engine = innodb key_block_size = 0;
  150. show warnings;
  151. --error ER_CANT_CREATE_TABLE
  152. create table t2 (id int primary key) engine = innodb key_block_size = 9;
  153. show warnings;
  154. create table t3 (id int primary key) engine = innodb key_block_size = 1;
  155. create table t4 (id int primary key) engine = innodb key_block_size = 2;
  156. create table t5 (id int primary key) engine = innodb key_block_size = 4;
  157. create table t6 (id int primary key) engine = innodb key_block_size = 8;
  158. create table t7 (id int primary key) engine = innodb key_block_size = 16;
  159. #check various ROW_FORMAT values.
  160. create table t8 (id int primary key) engine = innodb row_format = compressed;
  161. create table t9 (id int primary key) engine = innodb row_format = dynamic;
  162. create table t10(id int primary key) engine = innodb row_format = compact;
  163. create table t11(id int primary key) engine = innodb row_format = redundant;
  164. SELECT table_schema, table_name, row_format
  165. FROM information_schema.tables WHERE engine='innodb';
  166. drop table t3, t4, t5, t6, t7, t8, t9, t10, t11;
  167. #test different values of ROW_FORMAT with KEY_BLOCK_SIZE
  168. create table t1 (id int primary key) engine = innodb
  169. key_block_size = 8 row_format = compressed;
  170. --error ER_CANT_CREATE_TABLE
  171. create table t2 (id int primary key) engine = innodb
  172. key_block_size = 8 row_format = redundant;
  173. show warnings;
  174. --error ER_CANT_CREATE_TABLE
  175. create table t3 (id int primary key) engine = innodb
  176. key_block_size = 8 row_format = compact;
  177. show warnings;
  178. --error ER_CANT_CREATE_TABLE
  179. create table t4 (id int primary key) engine = innodb
  180. key_block_size = 8 row_format = dynamic;
  181. show warnings;
  182. --error ER_CANT_CREATE_TABLE
  183. create table t5 (id int primary key) engine = innodb
  184. key_block_size = 8 row_format = default;
  185. show warnings;
  186. SELECT table_schema, table_name, row_format
  187. FROM information_schema.tables WHERE engine='innodb';
  188. drop table t1;
  189. #test multiple errors
  190. --error ER_CANT_CREATE_TABLE
  191. create table t1 (id int primary key) engine = innodb
  192. key_block_size = 9 row_format = redundant;
  193. show warnings;
  194. --error ER_CANT_CREATE_TABLE
  195. create table t2 (id int primary key) engine = innodb
  196. key_block_size = 9 row_format = compact;
  197. show warnings;
  198. --error ER_CANT_CREATE_TABLE
  199. create table t2 (id int primary key) engine = innodb
  200. key_block_size = 9 row_format = dynamic;
  201. show warnings;
  202. SELECT table_schema, table_name, row_format
  203. FROM information_schema.tables WHERE engine='innodb';
  204. #test valid values with innodb_file_per_table unset
  205. set global innodb_file_per_table = off;
  206. --error ER_CANT_CREATE_TABLE
  207. create table t1 (id int primary key) engine = innodb key_block_size = 1;
  208. show warnings;
  209. --error ER_CANT_CREATE_TABLE
  210. create table t2 (id int primary key) engine = innodb key_block_size = 2;
  211. show warnings;
  212. --error ER_CANT_CREATE_TABLE
  213. create table t3 (id int primary key) engine = innodb key_block_size = 4;
  214. show warnings;
  215. --error ER_CANT_CREATE_TABLE
  216. create table t4 (id int primary key) engine = innodb key_block_size = 8;
  217. show warnings;
  218. --error ER_CANT_CREATE_TABLE
  219. create table t5 (id int primary key) engine = innodb key_block_size = 16;
  220. show warnings;
  221. --error ER_CANT_CREATE_TABLE
  222. create table t6 (id int primary key) engine = innodb row_format = compressed;
  223. show warnings;
  224. --error ER_CANT_CREATE_TABLE
  225. create table t7 (id int primary key) engine = innodb row_format = dynamic;
  226. show warnings;
  227. create table t8 (id int primary key) engine = innodb row_format = compact;
  228. create table t9 (id int primary key) engine = innodb row_format = redundant;
  229. SELECT table_schema, table_name, row_format
  230. FROM information_schema.tables WHERE engine='innodb';
  231. drop table t8, t9;
  232. #test valid values with innodb_file_format unset
  233. set global innodb_file_per_table = on;
  234. set global innodb_file_format = `0`;
  235. --error ER_CANT_CREATE_TABLE
  236. create table t1 (id int primary key) engine = innodb key_block_size = 1;
  237. show warnings;
  238. --error ER_CANT_CREATE_TABLE
  239. create table t2 (id int primary key) engine = innodb key_block_size = 2;
  240. show warnings;
  241. --error ER_CANT_CREATE_TABLE
  242. create table t3 (id int primary key) engine = innodb key_block_size = 4;
  243. show warnings;
  244. --error ER_CANT_CREATE_TABLE
  245. create table t4 (id int primary key) engine = innodb key_block_size = 8;
  246. show warnings;
  247. --error ER_CANT_CREATE_TABLE
  248. create table t5 (id int primary key) engine = innodb key_block_size = 16;
  249. show warnings;
  250. --error ER_CANT_CREATE_TABLE
  251. create table t6 (id int primary key) engine = innodb row_format = compressed;
  252. show warnings;
  253. --error ER_CANT_CREATE_TABLE
  254. create table t7 (id int primary key) engine = innodb row_format = dynamic;
  255. show warnings;
  256. create table t8 (id int primary key) engine = innodb row_format = compact;
  257. create table t9 (id int primary key) engine = innodb row_format = redundant;
  258. SELECT table_schema, table_name, row_format
  259. FROM information_schema.tables WHERE engine='innodb';
  260. drop table t8, t9;
  261. eval set global innodb_file_per_table=$per_table;
  262. eval set global innodb_file_format=$format;
  263. #
  264. # Testing of tablespace tagging
  265. #
  266. -- disable_info
  267. set global innodb_file_per_table=on;
  268. set global innodb_file_format=`Barracuda`;
  269. set global innodb_file_format_check=`Antelope`;
  270. create table normal_table (
  271. c1 int
  272. ) engine = innodb;
  273. select @@innodb_file_format_check;
  274. create table zip_table (
  275. c1 int
  276. ) engine = innodb key_block_size = 8;
  277. select @@innodb_file_format_check;
  278. set global innodb_file_format_check=`Antelope`;
  279. select @@innodb_file_format_check;
  280. -- disable_result_log
  281. show table status;
  282. -- enable_result_log
  283. select @@innodb_file_format_check;
  284. drop table normal_table, zip_table;
  285. -- disable_result_log
  286. #
  287. # restore environment to the state it was before this test execution
  288. #
  289. -- disable_query_log
  290. eval set global innodb_file_format=$format;
  291. eval set global innodb_file_per_table=$per_table;
  292. eval set global innodb_file_format_check=$innodb_file_format_check_orig;