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/ha_ndbcluster.h | |
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/ha_ndbcluster.h')
-rw-r--r-- | sql/ha_ndbcluster.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sql/ha_ndbcluster.h b/sql/ha_ndbcluster.h index 9bcc549cb60..a994931843b 100644 --- a/sql/ha_ndbcluster.h +++ b/sql/ha_ndbcluster.h @@ -654,6 +654,14 @@ class ha_ndbcluster: public handler int get_default_no_partitions(ulonglong max_rows); bool get_no_parts(const char *name, uint *no_parts); void set_auto_partitions(partition_info *part_info); + virtual bool cannot_ignore_error(int error, uint flags) + { + if (!handler::cannot_ignore_error(error, flags)) + return FALSE; + if (error == HA_ERR_NO_PARTITION_FOUND) + return FALSE; + return TRUE; + } THR_LOCK_DATA **store_lock(THD *thd, THR_LOCK_DATA **to, |