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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user