diff options
author | unknown <jimw@mysql.com> | 2005-08-01 17:00:03 -0700 |
---|---|---|
committer | unknown <jimw@mysql.com> | 2005-08-01 17:00:03 -0700 |
commit | c33f7f9f9064d95a73778c0e962e20a267bccaad (patch) | |
tree | 0a57ed1d5a816f7305b1707b5b84c935929c5328 /mysql-test | |
parent | e53419b45334ddcfd964dd2fd9fec0e82c3fe24a (diff) | |
download | mariadb-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')
-rw-r--r-- | mysql-test/r/delayed.result | 7 | ||||
-rw-r--r-- | mysql-test/t/delayed.test | 9 |
2 files changed, 16 insertions, 0 deletions
diff --git a/mysql-test/r/delayed.result b/mysql-test/r/delayed.result index e9766622cf6..f8ae61b03fb 100644 --- a/mysql-test/r/delayed.result +++ b/mysql-test/r/delayed.result @@ -32,3 +32,10 @@ a b 3 d 4 e drop table t1; +create table t1 (a int not null primary key); +insert into t1 values (1); +insert delayed into t1 values (1); +select * from t1; +a +1 +drop table t1; 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; |