mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
branches/5.1: The version of the result file checked in was broken in r5243.
This commit is contained in:
@ -867,11 +867,25 @@ INSERT INTO t2 SELECT NULL FROM t1;
|
|||||||
Got one of the listed errors
|
Got one of the listed errors
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
DROP TABLE t2;
|
DROP TABLE t2;
|
||||||
c1 TINYINT(3) UNSIGNED NOT NULL AUTO_INCREMENT
|
CREATE TABLE t1 (c1 INT PRIMARY KEY AUTO_INCREMENT) ENGINE=InnoDB;
|
||||||
PRIMARY KEY) ENGINE=InnoDB;
|
INSERT INTO t1 VALUES (null);
|
||||||
INSERT INTO t2 SELECT c1 FROM t1;
|
INSERT INTO t1 VALUES (null);
|
||||||
Got one of the listed errors
|
ALTER TABLE t1 CHANGE c1 d1 INT NOT NULL AUTO_INCREMENT;
|
||||||
INSERT INTO t2 SELECT NULL FROM t1;
|
SELECT * FROM t1;
|
||||||
|
d1
|
||||||
|
1
|
||||||
|
3
|
||||||
|
SELECT * FROM t1;
|
||||||
|
d1
|
||||||
|
1
|
||||||
|
3
|
||||||
|
INSERT INTO t1 VALUES(null);
|
||||||
Got one of the listed errors
|
Got one of the listed errors
|
||||||
|
ALTER TABLE t1 AUTO_INCREMENT = 3;
|
||||||
|
INSERT INTO t1 VALUES(null);
|
||||||
|
SELECT * FROM t1;
|
||||||
|
d1
|
||||||
|
1
|
||||||
|
3
|
||||||
|
4
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
DROP TABLE t2;
|
|
||||||
|
Reference in New Issue
Block a user