summaryrefslogtreecommitdiff
path: root/sql/opt_range.cc
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2022-02-09 16:24:19 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2022-02-09 16:24:19 +0200
commitc75e3770dc9dc3154538c10c51deb2d095a5e232 (patch)
tree2d45c07ce1e7c60b991fb47c90412b08a61d7c0a /sql/opt_range.cc
parent12cd3dc78d2a58a15377000a7a8adb92d4fa74fb (diff)
parent70a8875564799c726960cc644dc6eed7ca499e71 (diff)
downloadmariadb-git-c75e3770dc9dc3154538c10c51deb2d095a5e232.tar.gz
Merge 10.7 into 10.8
Diffstat (limited to 'sql/opt_range.cc')
-rw-r--r--sql/opt_range.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/opt_range.cc b/sql/opt_range.cc
index 762fd7cf221..391a04c2a1a 100644
--- a/sql/opt_range.cc
+++ b/sql/opt_range.cc
@@ -14112,7 +14112,7 @@ get_best_group_min_max(PARAM *param, SEL_TREE *tree, double read_time)
key_part_range[1]= last_part;
/* Check if cur_part is referenced in the WHERE clause. */
- if (join->conds->walk(&Item::find_item_in_field_list_processor, 0,
+ if (join->conds->walk(&Item::find_item_in_field_list_processor, true,
key_part_range))
{
cause= "keypart reference from where clause";