summaryrefslogtreecommitdiff
path: root/sql/sql_union.cc
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2022-07-04 15:23:01 +0200
committerOleksandr Byelkin <sanja@mariadb.com>2022-09-27 09:56:21 +0200
commit47e967898283a1fef44a7b84467cf26ff6bd63a3 (patch)
tree480c35919eda08e58a6a456ccc42bd33a1c515f7 /sql/sql_union.cc
parent2b89598fe017d8ae1898a97071d00581b7ba6271 (diff)
downloadmariadb-git-47e967898283a1fef44a7b84467cf26ff6bd63a3.tar.gz
MDEV-29022 add_slave destroy child list and has dead code
Nowdays subquery in a UNION's ORDER BY placed correctly in fake select, the only problem was incorrect Name_resolution_contect is fixed by this patch in parsing, so we do not need scanning/reseting of ORDER BY of a union.
Diffstat (limited to 'sql/sql_union.cc')
-rw-r--r--sql/sql_union.cc9
1 files changed, 0 insertions, 9 deletions
diff --git a/sql/sql_union.cc b/sql/sql_union.cc
index 32d307de5e8..e831e2a479c 100644
--- a/sql/sql_union.cc
+++ b/sql/sql_union.cc
@@ -633,15 +633,6 @@ st_select_lex_unit::init_prepare_fake_select_lex(THD *thd_arg,
order= order->next)
order->item= &order->item_ptr;
}
- for (ORDER *order= global_parameters()->order_list.first;
- order;
- order=order->next)
- {
- (*order->item)->walk(&Item::change_context_processor, 0,
- &fake_select_lex->context);
- (*order->item)->walk(&Item::set_fake_select_as_master_processor, 0,
- fake_select_lex);
- }
}