1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

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
This commit is contained in:
unknown
2005-08-01 17:00:03 -07:00
parent e53419b453
commit c33f7f9f90
3 changed files with 19 additions and 1 deletions

View File

@@ -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;