summaryrefslogtreecommitdiff
path: root/sql/opt_range.cc
diff options
context:
space:
mode:
authorAlexey Kopytov <Alexey.Kopytov@Sun.com>2009-11-23 13:07:18 +0300
committerAlexey Kopytov <Alexey.Kopytov@Sun.com>2009-11-23 13:07:18 +0300
commit908323304e9242ca740755a20b62dc41f799a477 (patch)
treed7be7cf5c69f46384689c374adcea5708041859f /sql/opt_range.cc
parenta2ed682967bdc29d249d0f607f4eea4d84a81761 (diff)
parent38ed9324bec38b846d285071e361959a0003e26f (diff)
downloadmariadb-git-908323304e9242ca740755a20b62dc41f799a477.tar.gz
Automerge.
Diffstat (limited to 'sql/opt_range.cc')
-rw-r--r--sql/opt_range.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/sql/opt_range.cc b/sql/opt_range.cc
index 909e3d36be5..9d8d3bd43d9 100644
--- a/sql/opt_range.cc
+++ b/sql/opt_range.cc
@@ -9851,7 +9851,11 @@ check_group_min_max_predicates(COND *cond, Item_field *min_max_arg_item,
}
else if (cur_arg->const_item())
{
- DBUG_RETURN(TRUE);
+ /*
+ For predicates of the form "const OP expr" we also have to check 'expr'
+ to make a decision.
+ */
+ continue;
}
else
DBUG_RETURN(FALSE);