diff options
author | Alexey Kopytov <Alexey.Kopytov@Sun.com> | 2009-11-23 13:07:18 +0300 |
---|---|---|
committer | Alexey Kopytov <Alexey.Kopytov@Sun.com> | 2009-11-23 13:07:18 +0300 |
commit | 908323304e9242ca740755a20b62dc41f799a477 (patch) | |
tree | d7be7cf5c69f46384689c374adcea5708041859f /sql/opt_range.cc | |
parent | a2ed682967bdc29d249d0f607f4eea4d84a81761 (diff) | |
parent | 38ed9324bec38b846d285071e361959a0003e26f (diff) | |
download | mariadb-git-908323304e9242ca740755a20b62dc41f799a477.tar.gz |
Automerge.
Diffstat (limited to 'sql/opt_range.cc')
-rw-r--r-- | sql/opt_range.cc | 6 |
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); |