diff options
author | unknown <heikki@hundin.mysql.fi> | 2005-06-07 12:27:37 +0300 |
---|---|---|
committer | unknown <heikki@hundin.mysql.fi> | 2005-06-07 12:27:37 +0300 |
commit | 092389719bc92937b0bb8427fe19b3fb468ec1ec (patch) | |
tree | 4f2500b32bfdcf3e7d2346bd0d75d6cd7146e134 /mysql-test/t/innodb.test | |
parent | c37818c8e6e746c4c9f222a06182e4adc19be6cc (diff) | |
download | mariadb-git-092389719bc92937b0bb8427fe19b3fb468ec1ec.tar.gz |
innodb.result, innodb.test:
Update Monty's tests for AUTO-INC bug #11080 and bug #11005
mysql-test/t/innodb.test:
Update Monty's tests for AUTO-INC bug #11080 and bug #11005
mysql-test/r/innodb.result:
Update Monty's tests for AUTO-INC bug #11080 and bug #11005
Diffstat (limited to 'mysql-test/t/innodb.test')
-rw-r--r-- | mysql-test/t/innodb.test | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/mysql-test/t/innodb.test b/mysql-test/t/innodb.test index e2d098618f5..65191f8af8a 100644 --- a/mysql-test/t/innodb.test +++ b/mysql-test/t/innodb.test @@ -1350,16 +1350,12 @@ 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); -# We shouldn't get the following error ---error 1062 replace into t1 (b) values (2), (1), (3); select * from t1; truncate table t1; insert into t1 (b) values (1); replace into t1 (b) values (2); replace into t1 (b) values (1); -# We shouldn't get the following error ---error 1062 replace into t1 (b) values (3); select * from t1; drop table t1; @@ -1367,24 +1363,23 @@ 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'); -# We shouldn't get the following error ---error 1062 replace into t1 (val) values ('1'),('2'); ---error 1062 insert into t1 (val) values ('1'),('2'); +--error 1062 select * from t1; drop table t1; # -# Test that update changes internal auto-increment value +# Test that update does not change internal auto-increment value # create table t1 (a int not null auto_increment primary key, val int) engine=InnoDB; insert into t1 (val) values (1); update t1 set a=2 where a=1; -# We shouldn't get the following error +# We should get the following error because InnoDB does not update the counter --error 1062 insert into t1 (val) values (1); +--error 1062 select * from t1; drop table t1; |