summaryrefslogtreecommitdiff
path: root/mysql-test/t/delayed.test
diff options
context:
space:
mode:
authorunknown <jimw@mysql.com>2005-08-01 17:00:03 -0700
committerunknown <jimw@mysql.com>2005-08-01 17:00:03 -0700
commitc33f7f9f9064d95a73778c0e962e20a267bccaad (patch)
tree0a57ed1d5a816f7305b1707b5b84c935929c5328 /mysql-test/t/delayed.test
parente53419b45334ddcfd964dd2fd9fec0e82c3fe24a (diff)
downloadmariadb-git-c33f7f9f9064d95a73778c0e962e20a267bccaad.tar.gz
Fix crash in 'INSERT DELAYED' statement that failed due to a
conflict in a unique key. (Bug #12226) mysql-test/r/delayed.result: Add results mysql-test/t/delayed.test: Add new regression test sql/sql_insert.cc: Fix crash in error handling of 'INSERT DELAYED' statement
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;