Debian Codegraph @

mysql-test/suite/innodb/t/create_table.test

raw
1 --source include/have_debug.inc
2
3 --echo #
4 --echo # Bug #22306581 VALGRIND FAILURE IN INNODB.TEMPORARY_TABLE
5 --echo #
6
7 --error ER_ILLEGAL_HA
8 create temporary table t (i int) COMPRESSION = "ZLIB" ENGINE = InnoDB;
9 SHOW WARNINGS;
10
11 --error ER_ILLEGAL_HA
12 create table t1(i INT) COMPRESSION="ZLIB" ENGINE=InnoDB TABLESPACE=innodb_system;
13 SHOW WARNINGS;
14
15 SET DEBUG ='+d, simulate_max_char_col';
16 --error ER_GET_ERRNO, ER_GET_ERRNO
17 create table t1(f1 varchar(1000))engine=innodb;
18 SET DEBUG ='-d, simulate_max_char_col';
19
20 --echo #
21 --echo # Bug #27361662 ERROR NOT THROWN ON CREATING TEMPORARY TABLE IN
22 --echo # INNODB_FILE_PER_TABLE TABLESPACE
23 --echo #
24
25 --echo # Try creating temporary table with innodb_file_per_table option with STRICT mode
26 # Enable STRICT mode
27 SET innodb_strict_mode = ON;
28 --error ER_ILLEGAL_HA_CREATE_OPTION
29 CREATE TEMPORARY TABLE t1(c1 int) TABLESPACE innodb_file_per_table;
30
31 # Validate that the table is not created
32 --error ER_NO_SUCH_TABLE
33 SELECT COUNT(*) FROM t1;
34
35 --echo # Try creating temporary table with innodb_file_per_table option without STRICT mode
36 # Disable STRICT mode
37 SET innodb_strict_mode = OFF;
38 CREATE TEMPORARY TABLE t1(c1 int) TABLESPACE innodb_file_per_table;
39 SHOW WARNINGS;
40
41 # Validate temporary table exists
42 SELECT COUNT(*) FROM t1;
43
44 --echo # Try to create a table name that has the form of an FTS auxilliary table name.
45 --error ER_WRONG_TABLE_NAME
46 CREATE TABLE fts_0000000000000424_config (id int);
47 SHOW WARNINGS;
48
49 # Reset STRICT mode to default
50 SET innodb_strict_mode = default;