summaryrefslogtreecommitdiff
path: root/sql/item_subselect.cc
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2022-02-25 16:09:16 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2022-02-25 16:09:16 +0200
commit3d88f9f34c1223c59272d5086dcd2b4b2cfc167b (patch)
tree53613cc5f6b07de05a525618c4430149e60f8b86 /sql/item_subselect.cc
parent01bb003a3a0864c3e7f140816cc681890d0fc988 (diff)
parent6daf8f8a0d81a1bb7a6241f4363ab9395b14617d (diff)
downloadmariadb-git-3d88f9f34c1223c59272d5086dcd2b4b2cfc167b.tar.gz
Merge 10.6 into 10.7
Diffstat (limited to 'sql/item_subselect.cc')
-rw-r--r--sql/item_subselect.cc9
1 files changed, 3 insertions, 6 deletions
diff --git a/sql/item_subselect.cc b/sql/item_subselect.cc
index c2e322926d9..97c7469214d 100644
--- a/sql/item_subselect.cc
+++ b/sql/item_subselect.cc
@@ -2883,12 +2883,9 @@ bool Item_in_subselect::inject_in_to_exists_cond(JOIN *join_arg)
{
/* The argument list of the top-level AND may change after fix fields. */
and_args= ((Item_cond*) join_arg->conds)->argument_list();
- List_iterator<Item_equal> li(join_arg->cond_equal->current_level);
- Item_equal *elem;
- while ((elem= li++))
- {
- and_args->push_back(elem, thd->mem_root);
- }
+ ((Item_cond_and *) (join_arg->conds))->m_cond_equal=
+ *join_arg->cond_equal;
+ and_args->append((List<Item> *)&join_arg->cond_equal->current_level);
}
}