1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

BUG#17138: Error in stored procedure due to fatal error when not really

a fatal error. New handling of ignore error in place.
This commit is contained in:
mikael@dator5.(none)
2006-06-19 20:56:50 -04:00
parent d2b04770ac
commit 8bd81e1fee
9 changed files with 86 additions and 23 deletions

View File

@@ -6235,10 +6235,8 @@ copy_data_between_tables(TABLE *from,TABLE *to,
}
if ((error=to->file->ha_write_row((byte*) to->record[0])))
{
if ((!ignore &&
handle_duplicates != DUP_REPLACE) ||
(error != HA_ERR_FOUND_DUPP_KEY &&
error != HA_ERR_FOUND_DUPP_UNIQUE))
if (!ignore ||
to->file->cannot_ignore_error(error, HA_CHECK_DUPP))
{
if (error == HA_ERR_FOUND_DUPP_KEY)
{