summaryrefslogtreecommitdiff
path: root/sql/ha_partition.h
diff options
context:
space:
mode:
authorunknown <mikael@dator5.(none)>2006-06-19 20:56:50 -0400
committerunknown <mikael@dator5.(none)>2006-06-19 20:56:50 -0400
commit461d75a12860234634a4ca89ee3e2666147f6f7c (patch)
treee9fe42f606af55a38cf51cdf386a867f0ac6529b /sql/ha_partition.h
parentf712303e710d74e33886c10be2d667d418a2bfff (diff)
downloadmariadb-git-461d75a12860234634a4ca89ee3e2666147f6f7c.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_partition.h')
-rw-r--r--sql/ha_partition.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/sql/ha_partition.h b/sql/ha_partition.h
index b52c8d92164..2bf9811827f 100644
--- a/sql/ha_partition.h
+++ b/sql/ha_partition.h
@@ -302,6 +302,14 @@ public:
virtual void start_bulk_insert(ha_rows rows);
virtual int end_bulk_insert();
+ 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;
+ }
/*
-------------------------------------------------------------------------
MODULE full table scan