summaryrefslogtreecommitdiff
path: root/mysql-test/t/delayed.test
diff options
context:
space:
mode:
authorjimw@mysql.com <>2005-08-01 17:00:03 -0700
committerjimw@mysql.com <>2005-08-01 17:00:03 -0700
commit4cf8696eae268d6595c825784a624d9146d58967 (patch)
tree0a57ed1d5a816f7305b1707b5b84c935929c5328 /mysql-test/t/delayed.test
parentea7df08c93fed654825baaa532d6752024a3dc46 (diff)
downloadmariadb-git-4cf8696eae268d6595c825784a624d9146d58967.tar.gz
Fix crash in 'INSERT DELAYED' statement that failed due to a
conflict in a unique key. (Bug #12226)
Diffstat (limited to 'mysql-test/t/delayed.test')
-rw-r--r--mysql-test/t/delayed.test9
1 files changed, 9 insertions, 0 deletions
diff --git a/mysql-test/t/delayed.test b/mysql-test/t/delayed.test
index 3030ac20304..ca34cc020f3 100644
--- a/mysql-test/t/delayed.test
+++ b/mysql-test/t/delayed.test
@@ -38,3 +38,12 @@ select * from t1;
drop table t1;
# End of 4.1 tests
+
+#
+# Bug #12226: Crash when a delayed insert fails due to a duplicate key
+#
+create table t1 (a int not null primary key);
+insert into t1 values (1);
+insert delayed into t1 values (1);
+select * from t1;
+drop table t1;