diff options
author | monty@mashka.mysql.fi <> | 2003-02-10 01:21:39 +0200 |
---|---|---|
committer | monty@mashka.mysql.fi <> | 2003-02-10 01:21:39 +0200 |
commit | aee7346ec11b6ec83747de21490d6f7ecf1ca6be (patch) | |
tree | 71de5b6d804048a8a975f72fb2ad21e263bc81d4 /sql | |
parent | c4e7cbe15835a5c3831115759b1e1fecd3f3de72 (diff) | |
parent | c0b655aa387a2d61a3c6507a9f9bca1f7febab03 (diff) | |
download | mariadb-git-aee7346ec11b6ec83747de21490d6f7ecf1ca6be.tar.gz |
Merge mashka.mysql.fi:/home/my/mysql-4.0
into mashka.mysql.fi:/home/my/mysql-4.1
Diffstat (limited to 'sql')
-rw-r--r-- | sql/opt_range.cc | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/sql/opt_range.cc b/sql/opt_range.cc index 879c75eb2e2..9c546c99057 100644 --- a/sql/opt_range.cc +++ b/sql/opt_range.cc @@ -501,10 +501,11 @@ SEL_ARG *SEL_ARG::last() return next_arg; } + /* Check if a compare is ok, when one takes ranges in account Returns -2 or 2 if the ranges where 'joined' like < 2 and >= 2 - */ +*/ static int sel_cmp(Field *field, char *a,char *b,uint8 a_flag,uint8 b_flag) { @@ -1020,17 +1021,6 @@ get_mm_leaf(PARAM *param, Field *field, KEY_PART *key_part, if (value->save_in_field(field, 1) > 0) { /* This happens when we try to insert a NULL field in a not null column */ - // TODO; Check if we can we remove the following block. - if (type == Item_func::EQUAL_FUNC) - { - /* convert column_name <=> NULL -> column_name IS NULL */ - // Get local copy of key - char *str= (char*) alloc_root(param->mem_root,1); - if (!str) - DBUG_RETURN(0); - *str= 1; - DBUG_RETURN(new SEL_ARG(field,str,str)); - } DBUG_RETURN(&null_element); // cmp with NULL is never true } // Get local copy of key |