Debian Codegraph @

mysql-test/suite/innodb/r/innodb-bug-14068765.result

raw
1 CREATE DATABASE testdb_wl5522;
2 CREATE TABLE testdb_wl5522.t1(col1 bit(1) , col2 boolean,col3 tinyint , col4 smallint , col5 mediumint ,col6 int , col7 bigint , col8 float (14,3) ,col9 double (14,3), col10 VARCHAR(20) CHARACTER SET utf8 , col11 TEXT CHARACTER SET binary , col12 ENUM('a','b','c') CHARACTER SET binary ,col13 TEXT CHARACTER SET latin1 COLLATE latin1_general_cs ,col14 CHAR(20) , col15 VARBINARY (400) , col16 BINARY(40), col17 BLOB (400) , col18 int not null primary key,col19 DATE ,col20 DATETIME , col21 TIMESTAMP ,col22 TIME , col23 YEAR ) ENGINE = Innodb;
3 Warnings:
4 Warning 1681 Specifying number of digits for floating point data types is deprecated and will be removed in a future release.
5 Warning 1681 Specifying number of digits for floating point data types is deprecated and will be removed in a future release.
6 Warning 3719 'utf8' is currently an alias for the character set UTF8MB3, but will be an alias for UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous.
7 CREATE INDEX idx1 ON testdb_wl5522.t1(col18);
8 CREATE INDEX prefix_idx ON testdb_wl5522.t1(col14 (10));
9 CREATE UNIQUE INDEX idx2 ON testdb_wl5522.t1(col12);
10 CREATE UNIQUE INDEX idx3 ON testdb_wl5522.t1(col8);
11 INSERT INTO testdb_wl5522.t1 VALUES (1,1,-128,32767,-8388608,2147483647,-9223372036854775808, 92233720368.222,-92233720368.222,'aaa', 'aaaaaaaaaa','b','bbbbb','ccccc',REPEAT('d',40),REPEAT('d',40),REPEAT('d',40), 1,'1000-01-01','3000-12-31 23:59:59.99','1990-01-01 00:00:01.00','01:59:59.00','1901');
12 INSERT INTO testdb_wl5522.t1 VALUES (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,3,NULL,NULL,NULL,NULL,NULL);
13 INSERT INTO testdb_wl5522.t1 VALUES (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
14 ERROR 23000: Column 'col18' cannot be null
15 INSERT INTO testdb_wl5522.t1 VALUES (NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL);
16 ERROR 23000: Duplicate entry '1' for key 't1.PRIMARY'
17 FLUSH TABLES testdb_wl5522.t1 WITH READ LOCK;
18 SELECT COUNT(*) FROM testdb_wl5522.t1;
19 COUNT(*)
20 2
21 backup: t1
22 UNLOCK TABLES;
23 DROP TABLE testdb_wl5522.t1;
24 CREATE TABLE testdb_wl5522.t1(col1 bit(1) , col2 boolean,col3 tinyint , col4 smallint , col5 mediumint ,col6 int , col7 bigint , col8 float (14,3) ,col9 double (14,3), col10 VARCHAR(20) CHARACTER SET utf8 , col11 TEXT CHARACTER SET binary , col12 ENUM('a','b','c') CHARACTER SET binary ,col13 TEXT CHARACTER SET latin1 COLLATE latin1_general_cs ,col14 CHAR(20) , col15 VARBINARY (400) , col16 BINARY(40), col17 BLOB (400) , col18 int not null primary key,col19 DATE ,col20 DATETIME , col21 TIMESTAMP ,col22 TIME , col23 YEAR ) ENGINE = Innodb;
25 Warnings:
26 Warning 1681 Specifying number of digits for floating point data types is deprecated and will be removed in a future release.
27 Warning 1681 Specifying number of digits for floating point data types is deprecated and will be removed in a future release.
28 Warning 3719 'utf8' is currently an alias for the character set UTF8MB3, but will be an alias for UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous.
29 CREATE INDEX idx1 ON testdb_wl5522.t1(col18);
30 CREATE INDEX prefix_idx ON testdb_wl5522.t1(col14 (10));
31 CREATE UNIQUE INDEX idx2 ON testdb_wl5522.t1(col12);
32 CREATE UNIQUE INDEX idx3 ON testdb_wl5522.t1(col8);
33 ALTER TABLE testdb_wl5522.t1 DISCARD TABLESPACE;
34 restore: t1 .ibd and .cfg files
35 ALTER TABLE testdb_wl5522.t1 IMPORT TABLESPACE;
36 CHECK TABLE testdb_wl5522.t1;
37 Table Op Msg_type Msg_text
38 testdb_wl5522.t1 check status OK
39 SELECT COUNT(*) FROM testdb_wl5522.t1;
40 COUNT(*)
41 2
42 DROP TABLE testdb_wl5522.t1;
43 DROP DATABASE testdb_wl5522;