1
drop table if exists t1;
2
CREATE TABLE t1 (c1 BIGINT PRIMARY KEY AUTO_INCREMENT, c2 VARCHAR(10)) ENGINE=InnoDB;
3
INSERT INTO t1 VALUES (9223372036854775807, null);
4
INSERT INTO t1 (c2) VALUES ('innodb');
5
Got one of the listed errors
8
9223372036854775807 NULL
10
CREATE TABLE t1 (c1 TINYINT PRIMARY KEY AUTO_INCREMENT, c2 VARCHAR(10)) ENGINE=InnoDB;
11
INSERT INTO t1 VALUES (127, null);
12
INSERT INTO t1 (c2) VALUES ('innodb');
13
Got one of the listed errors
18
CREATE TABLE t1 (c1 TINYINT UNSIGNED PRIMARY KEY AUTO_INCREMENT, c2 VARCHAR(10)) ENGINE=InnoDB;
19
INSERT INTO t1 VALUES (255, null);
20
INSERT INTO t1 (c2) VALUES ('innodb');
21
Got one of the listed errors
26
CREATE TABLE t1 (c1 SMALLINT PRIMARY KEY AUTO_INCREMENT, c2 VARCHAR(10)) ENGINE=InnoDB;
27
INSERT INTO t1 VALUES (32767, null);
28
INSERT INTO t1 (c2) VALUES ('innodb');
29
Got one of the listed errors
34
CREATE TABLE t1 (c1 SMALLINT UNSIGNED PRIMARY KEY AUTO_INCREMENT, c2 VARCHAR(10)) ENGINE=InnoDB;
35
INSERT INTO t1 VALUES (65535, null);
36
INSERT INTO t1 (c2) VALUES ('innodb');
37
Got one of the listed errors
42
CREATE TABLE t1 (c1 MEDIUMINT PRIMARY KEY AUTO_INCREMENT, c2 VARCHAR(10)) ENGINE=InnoDB;
43
INSERT INTO t1 VALUES (8388607, null);
44
INSERT INTO t1 (c2) VALUES ('innodb');
45
Got one of the listed errors
50
CREATE TABLE t1 (c1 MEDIUMINT UNSIGNED PRIMARY KEY AUTO_INCREMENT, c2 VARCHAR(10)) ENGINE=InnoDB;
51
INSERT INTO t1 VALUES (16777215, null);
52
INSERT INTO t1 (c2) VALUES ('innodb');
53
Got one of the listed errors
58
CREATE TABLE t1 (c1 INT PRIMARY KEY AUTO_INCREMENT, c2 VARCHAR(10)) ENGINE=InnoDB;
59
INSERT INTO t1 VALUES (2147483647, null);
60
INSERT INTO t1 (c2) VALUES ('innodb');
61
Got one of the listed errors
66
CREATE TABLE t1 (c1 INT UNSIGNED PRIMARY KEY AUTO_INCREMENT, c2 VARCHAR(10)) ENGINE=InnoDB;
67
INSERT INTO t1 VALUES (4294967295, null);
68
INSERT INTO t1 (c2) VALUES ('innodb');
69
Got one of the listed errors
74
CREATE TABLE t1 (c1 BIGINT PRIMARY KEY AUTO_INCREMENT, c2 VARCHAR(10)) ENGINE=InnoDB;
75
INSERT INTO t1 VALUES (9223372036854775807, null);
76
INSERT INTO t1 (c2) VALUES ('innodb');
77
Got one of the listed errors
80
9223372036854775807 NULL
82
CREATE TABLE t1 (c1 BIGINT UNSIGNED PRIMARY KEY AUTO_INCREMENT, c2 VARCHAR(10)) ENGINE=InnoDB;
83
INSERT INTO t1 VALUES (18446744073709551615, null);
84
INSERT INTO t1 (c2) VALUES ('innodb');
85
Got one of the listed errors
88
18446744073709551615 NULL