diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2022-02-09 15:49:50 +0200 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2022-02-09 15:49:50 +0200 |
commit | cce994057bf7e2bdb62686075de03aeb5db4bbda (patch) | |
tree | 0b1413d979a0c573de8d7c0721d2586b099ad275 /sql/opt_range.cc | |
parent | 1bed56400e19f39697332205038d0cb1d51b25aa (diff) | |
parent | fd101daa84ec5f70f09c48e3fb7a4ce8f6d26edb (diff) | |
download | mariadb-git-cce994057bf7e2bdb62686075de03aeb5db4bbda.tar.gz |
Merge 10.5 into 10.6
Diffstat (limited to 'sql/opt_range.cc')
-rw-r--r-- | sql/opt_range.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/opt_range.cc b/sql/opt_range.cc index ce9c46572c7..6366b957377 100644 --- a/sql/opt_range.cc +++ b/sql/opt_range.cc @@ -14039,7 +14039,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"; |