summaryrefslogtreecommitdiff
path: root/sql/opt_range.cc
diff options
context:
space:
mode:
authorunknown <bar@bar.mysql.r18.ru>2003-07-16 11:29:16 +0500
committerunknown <bar@bar.mysql.r18.ru>2003-07-16 11:29:16 +0500
commita41a43f99d053b96821d0c7388126ca581146933 (patch)
tree96c3e55c00f579733c300a701e2e951e7520885a /sql/opt_range.cc
parent6b52f58255dd67a91d7cd0afa45f69607f498d0a (diff)
downloadmariadb-git-a41a43f99d053b96821d0c7388126ca581146933.tar.gz
Item_func_null doesn't have a separate Item for the first argument anymore.
args[0] is used instead. This allowed to resuse a lot of code.
Diffstat (limited to 'sql/opt_range.cc')
-rw-r--r--sql/opt_range.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/opt_range.cc b/sql/opt_range.cc
index 7eb66c4e30f..18c465ffde3 100644
--- a/sql/opt_range.cc
+++ b/sql/opt_range.cc
@@ -832,10 +832,10 @@ static SEL_TREE *get_mm_tree(PARAM *param,COND *cond)
Field *field=((Item_field*) (func->key_item()))->field;
Item_result cmp_type=field->cmp_type();
tree= get_mm_parts(param,field,Item_func::EQ_FUNC,
- func->arguments()[0],cmp_type);
+ func->arguments()[1],cmp_type);
if (!tree)
DBUG_RETURN(tree); // Not key field
- for (uint i=1 ; i < func->argument_count(); i++)
+ for (uint i=2 ; i < func->argument_count(); i++)
{
SEL_TREE *new_tree=get_mm_parts(param,field,Item_func::EQ_FUNC,
func->arguments()[i],cmp_type);