1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Fix crash in 'INSERT DELAYED' statement that failed due to a

conflict in a unique key. (Bug #12226)
This commit is contained in:
jimw@mysql.com
2005-08-01 17:00:03 -07:00
parent ea7df08c93
commit 4cf8696eae
3 changed files with 19 additions and 1 deletions

View File

@ -1088,7 +1088,9 @@ ok_or_after_trg_err:
err:
info->last_errno= error;
thd->lex->current_select->no_error= 0; // Give error
/* current_select is NULL if this is a delayed insert */
if (thd->lex->current_select)
thd->lex->current_select->no_error= 0; // Give error
table->file->print_error(error,MYF(0));
before_trg_err: