summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
authormonty@narttu.mysql.fi <>2003-03-18 03:19:20 +0200
committermonty@narttu.mysql.fi <>2003-03-18 03:19:20 +0200
commitc2fa342d537b52f042ea3789f220df6cee6a6a74 (patch)
treeda8cf393b1fa3a8b2096289ccb606a372e734759 /mysql-test
parent052edd98d426a4738c88f6f63870c3ecfffeae84 (diff)
parent85de222334f89a95bb60554b537d84c3bdc5a627 (diff)
downloadmariadb-git-c2fa342d537b52f042ea3789f220df6cee6a6a74.tar.gz
Merge with 3.23 to get fix for halloween problem on Update of InnoDB tables
Diffstat (limited to 'mysql-test')
-rw-r--r--mysql-test/t/innodb.test11
1 files changed, 11 insertions, 0 deletions
diff --git a/mysql-test/t/innodb.test b/mysql-test/t/innodb.test
index 2fcde863b9c..320047b68fa 100644
--- a/mysql-test/t/innodb.test
+++ b/mysql-test/t/innodb.test
@@ -758,3 +758,14 @@ SELECT * FROM t3 WHERE id1="my-test-1" LOCK IN SHARE MODE;
COMMIT;
set autocommit=1;
DROP TABLE t1,t2,t3;
+
+#
+# Check update with conflicting key
+#
+
+CREATE TABLE t1 (a int not null primary key, b int not null, unique (b)) type=innodb;
+INSERT INTO t1 values (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9);
+# We need the a < 1000 test here to quard against the halloween problems
+UPDATE t1 set a=a+100 where b between 2 and 3 and a < 1000;
+SELECT * from t1;
+drop table t1;