summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <igor@rurik.mysql.com>2005-06-28 12:00:38 -0700
committerunknown <igor@rurik.mysql.com>2005-06-28 12:00:38 -0700
commit19103bf364396d7a87581fb1faf01b70b852a46c (patch)
treecfccb0a7658c6e8ef2a82076d3aaae55e6d7f56b
parent95fd25f2db306afa5988f284da13ea6fde240090 (diff)
downloadmariadb-git-19103bf364396d7a87581fb1faf01b70b852a46c.tar.gz
opt_range.cc:
Fixed a compilation error. sql/opt_range.cc: Fixed a compilation error.
-rw-r--r--sql/opt_range.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/sql/opt_range.cc b/sql/opt_range.cc
index 24a6b12e6c9..fef32dbb69d 100644
--- a/sql/opt_range.cc
+++ b/sql/opt_range.cc
@@ -3871,9 +3871,8 @@ get_mm_leaf(PARAM *param, COND *conf_func, Field *field, KEY_PART *key_part,
negative integers (which otherwise fails because at query execution time
negative integers are cast to unsigned if compared with unsigned).
*/
- Item_result field_result_type= field->result_type();
- Item_result value_result_type= value->result_type();
- if (field_result_type == INT_RESULT && value_result_type == INT_RESULT &&
+ if (field->result_type() == INT_RESULT &&
+ value->result_type() == INT_RESULT &&
((Field_num*)field)->unsigned_flag && !((Item_int*)value)->unsigned_flag)
{
longlong item_val= value->val_int();