diff options
author | unknown <mikael@dator5.(none)> | 2006-06-19 20:56:50 -0400 |
---|---|---|
committer | unknown <mikael@dator5.(none)> | 2006-06-19 20:56:50 -0400 |
commit | d90d673daf4e1ed86e0701a35509f14d750ab9ca (patch) | |
tree | e9fe42f606af55a38cf51cdf386a867f0ac6529b /sql/sql_union.cc | |
parent | b19c1896adea1166adb8e80552ac3abfa7642205 (diff) | |
download | mariadb-git-d90d673daf4e1ed86e0701a35509f14d750ab9ca.tar.gz |
BUG#17138: Error in stored procedure due to fatal error when not really
a fatal error. New handling of ignore error in place.
mysql-test/t/partition.test:
New test case
sql/ha_ndbcluster.h:
New handler method to check if error can be ignored
sql/ha_partition.h:
New handler method to check if error can be ignored
sql/handler.h:
New handler method to check if error can be ignored
sql/sql_acl.cc:
Use new handler method
sql/sql_insert.cc:
Use new handler method
sql/sql_table.cc:
Use new handler method
sql/sql_union.cc:
Use new handler method
sql/sql_update.cc:
Use new handler method
Diffstat (limited to 'sql/sql_union.cc')
-rw-r--r-- | sql/sql_union.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_union.cc b/sql/sql_union.cc index bf93f0d3bea..5ad5ecc6556 100644 --- a/sql/sql_union.cc +++ b/sql/sql_union.cc @@ -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; } |