1
0
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:
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

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