Debian Codegraph @

mysql-test/suite/innodb/r/default_row_format_create.result

raw
1 ALTER DATABASE test CHARACTER SET latin1 COLLATE latin1_swedish_ci;
2 CREATE TABLE t1(c1 TEXT,c2 BLOB) ENGINE=InnoDB;
3 SHOW TABLE STATUS LIKE 't1';
4 Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
5 t1 InnoDB # Compact # # # # # # NULL # NULL NULL latin1_swedish_ci NULL 0 N
6 DROP TABLE t1;
7 CREATE TABLE t1(c1 TEXT,c2 BLOB) ENGINE=InnoDB ROW_FORMAT=DYNAMIC;
8 SHOW TABLE STATUS LIKE 't1';
9 Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
10 t1 InnoDB # Dynamic # # # # # # NULL # NULL NULL latin1_swedish_ci NULL row_format=DYNAMIC 0 N
11 DROP TABLE t1;
12 CREATE TABLE t1(c1 TEXT,c2 BLOB) ENGINE=InnoDB ROW_FORMAT=COMPACT;
13 SHOW TABLE STATUS LIKE 't1';
14 Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
15 t1 InnoDB # Compact # # # # # # NULL # NULL NULL latin1_swedish_ci NULL row_format=COMPACT 0 N
16 DROP TABLE t1;
17 CREATE TABLE t1(c1 TEXT,c2 BLOB) ENGINE=InnoDB ROW_FORMAT=REDUNDANT;
18 SHOW TABLE STATUS LIKE 't1';
19 Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
20 t1 InnoDB # Redundant # # # # # # NULL # NULL NULL latin1_swedish_ci NULL row_format=REDUNDANT 0 N
21 DROP TABLE t1;
22 CREATE TABLE t1(c1 TEXT,c2 BLOB) ENGINE=InnoDB
23 ROW_FORMAT=COMPRESSED;
24 SHOW TABLE STATUS LIKE 't1';
25 Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
26 t1 InnoDB # Compressed # # # # # # NULL # NULL NULL latin1_swedish_ci NULL row_format=COMPRESSED 0 N
27 TRUNCATE TABLE t1;
28 SHOW TABLE STATUS LIKE 't1';
29 Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
30 t1 InnoDB # Compressed # # # # # # NULL # NULL NULL latin1_swedish_ci NULL row_format=COMPRESSED 0 N
31 DROP TABLE t1;
32 CREATE TABLE t1 (c1 INT) ENGINE=InnoDB page_compressed=1;
33 SHOW TABLE STATUS LIKE 't1';
34 Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
35 t1 InnoDB # Dynamic # # # # # # NULL # NULL NULL latin1_swedish_ci NULL `page_compressed`=1 0 N
36 DROP TABLE IF EXISTS t1;
37 SET @save_format = @@GLOBAL.innodb_default_row_format;
38 SET GLOBAL innodb_default_row_format = redundant;
39 CREATE TABLE t1 (c1 INT) ENGINE=InnoDB;
40 SET GLOBAL innodb_default_row_format = @save_format;
41 TRUNCATE TABLE t1;
42 SHOW TABLE STATUS LIKE 't1';
43 Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Max_index_length Temporary
44 t1 InnoDB # Redundant # # # # # # NULL # NULL NULL latin1_swedish_ci NULL 0 N
45 DROP TABLE t1;
46 SET @save_level=@@GLOBAL.innodb_compression_level;
47 SET GLOBAL innodb_compression_level=0;
48 CREATE TABLE t(c INT) ENGINE=InnoDB page_compressed=1;
49 ERROR HY000: Can't create table `test`.`t` (errno: 140 "Wrong create options")
50 SHOW WARNINGS;
51 Level Code Message
52 Warning 1478 InnoDB: PAGE_COMPRESSED requires PAGE_COMPRESSION_LEVEL or innodb_compression_level > 0
53 Error 1005 Can't create table `test`.`t` (errno: 140 "Wrong create options")
54 Warning 1030 Got error 140 "Wrong create options" from storage engine InnoDB
55 CREATE TABLE t(c INT) ENGINE=InnoDB page_compressed=1 page_compression_level=1;
56 DROP TABLE IF EXISTS t;
57 SET GLOBAL innodb_compression_level=1;
58 CREATE TABLE t(c INT) ENGINE=InnoDB page_compressed=1;
59 DROP TABLE IF EXISTS t;
60 SET GLOBAL innodb_compression_level=1;
61 CREATE TABLE t(a INT)ENGINE=InnoDB ROW_FORMAT=DYNAMIC page_compressed=1;
62 CREATE TEMPORARY TABLE tt(a INT PRIMARY KEY)
63 ROW_FORMAT=DYNAMIC page_compressed=1 ENGINE=InnoDB;
64 SET GLOBAL innodb_compression_level=0;
65 ALTER TABLE t FORCE, ROW_FORMAT=DEFAULT, ALGORITHM=INPLACE;
66 ERROR HY000: Table storage engine 'InnoDB' does not support the create option 'PAGE_COMPRESSED'
67 ALTER TABLE t FORCE, ROW_FORMAT=DEFAULT, ALGORITHM=COPY;
68 ERROR HY000: Can't create table `test`.`t` (errno: 140 "Wrong create options")
69 DROP TABLE t;
70 TRUNCATE tt;
71 SET GLOBAL innodb_compression_level=@save_level;
72 ALTER DATABASE test CHARACTER SET utf8mb4 COLLATE utf8mb4_uca1400_ai_ci;