summaryrefslogtreecommitdiff
path: root/sql/item_subselect.cc
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2020-07-01 11:32:21 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2020-07-01 12:03:55 +0300
commitea2bc974dce2ac509011807c80b36192cd18f686 (patch)
treeafbed3c29a2af90c44af2f086c6eb0d83c909840 /sql/item_subselect.cc
parentfbfb5b5f68a428ec819bc09d14b30cebf660b37b (diff)
parent1ea266f3ef36e779d23697b18cb94e1b0f8e65ef (diff)
downloadmariadb-git-ea2bc974dce2ac509011807c80b36192cd18f686.tar.gz
Merge 10.1 into 10.2bb-10.2-merge
Diffstat (limited to 'sql/item_subselect.cc')
-rw-r--r--sql/item_subselect.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item_subselect.cc b/sql/item_subselect.cc
index 640ed311602..92a86063d04 100644
--- a/sql/item_subselect.cc
+++ b/sql/item_subselect.cc
@@ -2038,7 +2038,7 @@ bool Item_allany_subselect::transform_into_max_min(JOIN *join)
The swap is needed for expressions of type 'f1 < ALL ( SELECT ....)'
where we want to evaluate the sub query even if f1 would be null.
*/
- subs= func->create_swap(thd, *(optimizer->get_cache()), subs);
+ subs= func->create_swap(thd, expr, subs);
thd->change_item_tree(place, subs);
if (subs->fix_fields(thd, &subs))
DBUG_RETURN(true);