From 4e390d711ad5830cbf999c4ff0058878dac232a0 Mon Sep 17 00:00:00 2001 From: "mikael@dator5.(none)" <> Date: Sat, 1 Jul 2006 00:01:37 -0400 Subject: BUG#17138: Crashes in stored procedure Last round of review fixes --- sql/ha_ndbcluster.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sql/ha_ndbcluster.h') diff --git a/sql/ha_ndbcluster.h b/sql/ha_ndbcluster.h index d5ad299607d..16b4c9f0794 100644 --- a/sql/ha_ndbcluster.h +++ b/sql/ha_ndbcluster.h @@ -656,9 +656,8 @@ class ha_ndbcluster: public handler void set_auto_partitions(partition_info *part_info); virtual bool is_fatal_error(int error, uint flags) { - if (!handler::is_fatal_error(error, flags)) - return FALSE; - if (error == HA_ERR_NO_PARTITION_FOUND) + if (!handler::is_fatal_error(error, flags) || + error == HA_ERR_NO_PARTITION_FOUND) return FALSE; return TRUE; } -- cgit v1.2.1