diff options
author | Oleksandr Byelkin <sanja@mariadb.com> | 2022-02-09 08:57:41 +0100 |
---|---|---|
committer | Oleksandr Byelkin <sanja@mariadb.com> | 2022-02-09 08:57:41 +0100 |
commit | 34c5019698ae2cab5be769b70665448a88f3ebbf (patch) | |
tree | a887c185c3fab2570e4bc3b498f57171a76766ae /sql/opt_range.cc | |
parent | ad3ac55641f18172807b13423353f01377f76e6e (diff) | |
parent | 5c46751f238ee8dcef1e718ac5f63952bff5d09d (diff) | |
download | mariadb-git-34c5019698ae2cab5be769b70665448a88f3ebbf.tar.gz |
Merge branch '10.5' into bb-10.5-release
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 1744d5b58bf..e3287e1bbea 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"; |