summaryrefslogtreecommitdiff
path: root/sql/item_subselect.cc
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2022-02-25 13:27:41 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2022-02-25 13:27:41 +0200
commitb791b942e1c04113c65cb7d3eaaf3cae8963efee (patch)
treec38449686a4dc894ef9d421a722e2a3f120879cf /sql/item_subselect.cc
parentf42d6234bdc5838f140f6a4541acb17a96434ba6 (diff)
parentf5ff7d09c73b5527cb6e0540cd470db9d8a82108 (diff)
downloadmariadb-git-b791b942e1c04113c65cb7d3eaaf3cae8963efee.tar.gz
Merge 10.4 into 10.5
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 44145c1f958..7412c517262 100644
--- a/sql/item_subselect.cc
+++ b/sql/item_subselect.cc
@@ -2844,12 +2844,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);
}
}