mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +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:
@@ -65,7 +65,7 @@ bool select_union::send_data(List<Item> &values)
|
||||
if ((error= table->file->ha_write_row(table->record[0])))
|
||||
{
|
||||
/* create_myisam_from_heap will generate error if needed */
|
||||
if (error != HA_ERR_FOUND_DUPP_KEY && error != HA_ERR_FOUND_DUPP_UNIQUE &&
|
||||
if (table->file->cannot_ignore_error(error, HA_CHECK_DUPP) &&
|
||||
create_myisam_from_heap(thd, table, &tmp_table_param, error, 1))
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user