summaryrefslogtreecommitdiff
path: root/sql/opt_range.cc
diff options
context:
space:
mode:
authorAlexey Kopytov <Alexey.Kopytov@Sun.com>2010-08-26 16:35:38 +0400
committerAlexey Kopytov <Alexey.Kopytov@Sun.com>2010-08-26 16:35:38 +0400
commitb6e89ff7a8c0bc26710ea6db0f27367ab99039d0 (patch)
treef8f8abb235d98bb13f4b8b1d0036fe1765c3fb47 /sql/opt_range.cc
parente50d45e709508051ca5fcc17373f179f135816d7 (diff)
parente7b268827130b6bc5fa6c2c0f90a850ee309668c (diff)
downloadmariadb-git-b6e89ff7a8c0bc26710ea6db0f27367ab99039d0.tar.gz
Automerge.
Diffstat (limited to 'sql/opt_range.cc')
-rw-r--r--sql/opt_range.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/opt_range.cc b/sql/opt_range.cc
index af5b4b7c7d6..b9819def54d 100644
--- a/sql/opt_range.cc
+++ b/sql/opt_range.cc
@@ -5620,7 +5620,11 @@ static SEL_TREE *get_mm_tree(RANGE_OPT_PARAM *param,COND *cond)
SEL_TREE *tmp= get_full_func_mm_tree(param, cond_func,
field_item, (Item*)(intptr)i, inv);
if (inv)
+ {
tree= !tree ? tmp : tree_or(param, tree, tmp);
+ if (tree == NULL)
+ break;
+ }
else
tree= tree_and(param, tree, tmp);
}