| 1 |
call mtr.add_suppression("InnoDB: Cannot add field `c1` in table `test`\\.`tab0`"); |
| 2 |
ALTER DATABASE test CHARACTER SET latin1 COLLATE latin1_swedish_ci; |
| 3 |
SELECT @@innodb_strict_mode; |
| 4 |
@@innodb_strict_mode |
| 5 |
1 |
| 6 |
SELECT @@innodb_file_per_table; |
| 7 |
@@innodb_file_per_table |
| 8 |
1 |
| 9 |
SET SQL_MODE=strict_all_tables; |
| 10 |
CREATE TABLE tab0 (c1 VARCHAR(65530), KEY(c1(3073))) ENGINE=InnoDB ROW_FORMAT=COMPRESSED; |
| 11 |
Warnings: |
| 12 |
Note 1071 Specified key was too long; max key length is 3072 bytes |
| 13 |
SHOW CREATE TABLE tab0; |
| 14 |
Table Create Table |
| 15 |
tab0 CREATE TABLE `tab0` ( |
| 16 |
`c1` varchar(65530) DEFAULT NULL, |
| 17 |
KEY `c1` (`c1`(3072)) |
| 18 |
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=COMPRESSED |
| 19 |
DROP TABLE tab0; |
| 20 |
CREATE TABLE tab0 (c1 VARCHAR(65530), KEY(c1(3073))) ENGINE=InnoDB KEY_BLOCK_SIZE=2; |
| 21 |
ERROR 42000: Row size too large (> 8126). Changing some columns to TEXT or BLOB may help. In current row format, BLOB prefix of 0 bytes is stored inline. |
| 22 |
CREATE TABLE tab0(c1 INT,c2 LONGBLOB ) ENGINE=InnoDB ROW_FORMAT=Dynamic; |
| 23 |
DROP TABLE tab0; |
| 24 |
SET GLOBAL innodb_strict_mode=OFF; |
| 25 |
SET GLOBAL innodb_strict_mode=Default; |
| 26 |
SELECT @@innodb_strict_mode; |
| 27 |
@@innodb_strict_mode |
| 28 |
1 |
| 29 |
CREATE TABLE tab1(c1 int ) ENGINE=InnoDB ROW_FORMAT=COMPRESSED; |
| 30 |
DROP TABLE tab1; |
| 31 |
ALTER DATABASE test CHARACTER SET utf8mb4 COLLATE utf8mb4_uca1400_ai_ci; |