diff options
author | unknown <monty@mysql.com> | 2006-06-19 13:00:36 +0300 |
---|---|---|
committer | unknown <monty@mysql.com> | 2006-06-19 13:00:36 +0300 |
commit | cd3fa2ee7108be73fdc81ae663fd655e41762437 (patch) | |
tree | e75191020187aa7951d311d8243bf28c5bbe307a /sql/opt_range.cc | |
parent | 9f8c532f0c7d8472cb809be6f80bb596d38b336b (diff) | |
parent | 4b316e6fd68a83421dffa5cf1d2add78bb8c8e65 (diff) | |
download | mariadb-git-cd3fa2ee7108be73fdc81ae663fd655e41762437.tar.gz |
Merge bk-internal.mysql.com:/home/bk/mysql-5.1
into mysql.com:/home/my/mysql-5.1
include/my_sys.h:
Auto merged
sql/field.cc:
Auto merged
sql/ha_ndbcluster.cc:
Auto merged
sql/ha_ndbcluster_binlog.cc:
Auto merged
sql/item_strfunc.cc:
Auto merged
sql/opt_range.cc:
Auto merged
sql/sql_string.cc:
Auto merged
Diffstat (limited to 'sql/opt_range.cc')
-rw-r--r-- | sql/opt_range.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sql/opt_range.cc b/sql/opt_range.cc index 4547b9e8100..7aaf9878bae 100644 --- a/sql/opt_range.cc +++ b/sql/opt_range.cc @@ -5164,8 +5164,8 @@ get_mm_parts(RANGE_OPT_PARAM *param, COND *cond_func, Field *field, static SEL_ARG * -get_mm_leaf(RANGE_OPT_PARAM *param, COND *conf_func, Field *field, KEY_PART *key_part, - Item_func::Functype type,Item *value) +get_mm_leaf(RANGE_OPT_PARAM *param, COND *conf_func, Field *field, + KEY_PART *key_part, Item_func::Functype type,Item *value) { uint maybe_null=(uint) field->real_maybe_null(); bool optimize_range; @@ -9126,10 +9126,10 @@ get_constant_key_infix(KEY *index_info, SEL_ARG *index_range_tree, uint field_length= cur_part->store_length; if ((cur_range->maybe_null && - cur_range->min_value[0] && cur_range->max_value[0]) - || - (memcmp(cur_range->min_value, cur_range->max_value, field_length) == 0)) - { /* cur_range specifies 'IS NULL' or an equality condition. */ + cur_range->min_value[0] && cur_range->max_value[0]) || + !memcmp(cur_range->min_value, cur_range->max_value, field_length)) + { + /* cur_range specifies 'IS NULL' or an equality condition. */ memcpy(key_ptr, cur_range->min_value, field_length); key_ptr+= field_length; *key_infix_len+= field_length; |