Loading mysql-test/r/ndb_alter_table.result +14 −13 Original line number Diff line number Diff line Loading @@ -134,20 +134,21 @@ a INT NOT NULL PRIMARY KEY, b INT NOT NULL ) ENGINE=ndbcluster; INSERT INTO t1 VALUES (0,1),(17,18); select * from t1; select * from t1 order by a; a b 17 18 0 1 17 18 alter table t1 add c int not null unique auto_increment; select * from t1 order by a; a b c 0 1 2 17 18 1 INSERT INTO t1 VALUES (18,19,3),(20,21,0); select * from t1 order by a; a b c 0 1 2 17 18 1 18 19 3 20 21 4 select c from t1 order by c; c 1 2 INSERT INTO t1 VALUES (1,2,0),(18,19,4),(20,21,0); select c from t1 order by c; c 1 2 3 4 5 drop table t1; mysql-test/t/ndb_alter_table.test +4 −4 Original line number Diff line number Diff line Loading @@ -107,11 +107,11 @@ CREATE TABLE t1 ( ) ENGINE=ndbcluster; INSERT INTO t1 VALUES (0,1),(17,18); select * from t1; alter table t1 add c int not null unique auto_increment; select * from t1 order by a; INSERT INTO t1 VALUES (18,19,3),(20,21,0); select * from t1 order by a; alter table t1 add c int not null unique auto_increment; select c from t1 order by c; INSERT INTO t1 VALUES (1,2,0),(18,19,4),(20,21,0); select c from t1 order by c; drop table t1; #--disable_warnings Loading Loading
mysql-test/r/ndb_alter_table.result +14 −13 Original line number Diff line number Diff line Loading @@ -134,20 +134,21 @@ a INT NOT NULL PRIMARY KEY, b INT NOT NULL ) ENGINE=ndbcluster; INSERT INTO t1 VALUES (0,1),(17,18); select * from t1; select * from t1 order by a; a b 17 18 0 1 17 18 alter table t1 add c int not null unique auto_increment; select * from t1 order by a; a b c 0 1 2 17 18 1 INSERT INTO t1 VALUES (18,19,3),(20,21,0); select * from t1 order by a; a b c 0 1 2 17 18 1 18 19 3 20 21 4 select c from t1 order by c; c 1 2 INSERT INTO t1 VALUES (1,2,0),(18,19,4),(20,21,0); select c from t1 order by c; c 1 2 3 4 5 drop table t1;
mysql-test/t/ndb_alter_table.test +4 −4 Original line number Diff line number Diff line Loading @@ -107,11 +107,11 @@ CREATE TABLE t1 ( ) ENGINE=ndbcluster; INSERT INTO t1 VALUES (0,1),(17,18); select * from t1; alter table t1 add c int not null unique auto_increment; select * from t1 order by a; INSERT INTO t1 VALUES (18,19,3),(20,21,0); select * from t1 order by a; alter table t1 add c int not null unique auto_increment; select c from t1 order by c; INSERT INTO t1 VALUES (1,2,0),(18,19,4),(20,21,0); select c from t1 order by c; drop table t1; #--disable_warnings Loading