summaryrefslogtreecommitdiff
path: root/sql/opt_range.cc
diff options
context:
space:
mode:
authorunknown <hf@deer.(none)>2004-03-16 13:26:37 +0400
committerunknown <hf@deer.(none)>2004-03-16 13:26:37 +0400
commitb0cfa449a6f35f0f9d061d7357131a83aa8d1b91 (patch)
tree4433015d6893ad522fc4fe88f07e57c5aeae670f /sql/opt_range.cc
parent17f8d3d725f4b465a8a0dc8e96b04cd973c47fd5 (diff)
downloadmariadb-git-b0cfa449a6f35f0f9d061d7357131a83aa8d1b91.tar.gz
Fix for #233 (the second one)
sql/field.cc: Field_geom::store() returns -1 as a sign of fatal error sql/field_conv.cc: set_field_to_null* return -1 now as the fatal error sql/item.cc: no sign inversions needed sql/opt_range.cc: -1 is the sign of fatal error now sql/sql_base.cc: -1 is the fatal error
Diffstat (limited to 'sql/opt_range.cc')
-rw-r--r--sql/opt_range.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/opt_range.cc b/sql/opt_range.cc
index 6f97a5afe94..2967bf947e4 100644
--- a/sql/opt_range.cc
+++ b/sql/opt_range.cc
@@ -1095,7 +1095,7 @@ get_mm_leaf(PARAM *param, COND *conf_func, Field *field, KEY_PART *key_part,
field->cmp_type() != value->result_type())
DBUG_RETURN(0);
- if (value->save_in_field(field, 1) > 0)
+ if (value->save_in_field(field, 1) < 0)
{
/* This happens when we try to insert a NULL field in a not null column */
DBUG_RETURN(&null_element); // cmp with NULL is never true