Loading mysql-test/r/innodb.result +4 −15 Original line number Diff line number Diff line Loading @@ -2430,32 +2430,21 @@ drop table t1; CREATE TABLE t1 ( `a` int(11) NOT NULL auto_increment, `b` int(11) default NULL,PRIMARY KEY (`a`),UNIQUE KEY `b` (`b`)) ENGINE=innodb; insert into t1 (b) values (1); replace into t1 (b) values (2), (1), (3); ERROR 23000: Duplicate entry '3' for key 1 select * from t1; a b 1 1 3 1 2 2 4 3 truncate table t1; insert into t1 (b) values (1); replace into t1 (b) values (2); replace into t1 (b) values (1); replace into t1 (b) values (3); ERROR 23000: Duplicate entry '3' for key 1 select * from t1; a b 3 1 2 2 drop table t1; create table t1 (rowid int not null auto_increment, val int not null,primary key (rowid), unique(val)) engine=innodb; replace into t1 (val) values ('1'),('2'); replace into t1 (val) values ('1'),('2'); ERROR 23000: Duplicate entry '3' for key 1 insert into t1 (val) values ('1'),('2'); ERROR 23000: Duplicate entry '1' for key 2 select * from t1; rowid val 1 1 2 2 4 3 drop table t1; create table t1 (rowid int not null auto_increment, val int not null,primary key (rowid), unique(val)) engine=innodb; Loading Loading
mysql-test/r/innodb.result +4 −15 Original line number Diff line number Diff line Loading @@ -2430,32 +2430,21 @@ drop table t1; CREATE TABLE t1 ( `a` int(11) NOT NULL auto_increment, `b` int(11) default NULL,PRIMARY KEY (`a`),UNIQUE KEY `b` (`b`)) ENGINE=innodb; insert into t1 (b) values (1); replace into t1 (b) values (2), (1), (3); ERROR 23000: Duplicate entry '3' for key 1 select * from t1; a b 1 1 3 1 2 2 4 3 truncate table t1; insert into t1 (b) values (1); replace into t1 (b) values (2); replace into t1 (b) values (1); replace into t1 (b) values (3); ERROR 23000: Duplicate entry '3' for key 1 select * from t1; a b 3 1 2 2 drop table t1; create table t1 (rowid int not null auto_increment, val int not null,primary key (rowid), unique(val)) engine=innodb; replace into t1 (val) values ('1'),('2'); replace into t1 (val) values ('1'),('2'); ERROR 23000: Duplicate entry '3' for key 1 insert into t1 (val) values ('1'),('2'); ERROR 23000: Duplicate entry '1' for key 2 select * from t1; rowid val 1 1 2 2 4 3 drop table t1; create table t1 (rowid int not null auto_increment, val int not null,primary key (rowid), unique(val)) engine=innodb; Loading