diff options
author | Oleksandr Byelkin <sanja@mariadb.com> | 2022-07-04 15:23:01 +0200 |
---|---|---|
committer | Oleksandr Byelkin <sanja@mariadb.com> | 2022-09-27 09:57:40 +0200 |
commit | 9f1a0b87850a0926b5d7065e75d29f22bb6dcd09 (patch) | |
tree | c6447c89ae9b63cf4c8f72071cf0a60eb697f762 /sql/sql_union.cc | |
parent | e3fdabd501d9b8efaf0ca65f930af438f7fe993f (diff) | |
download | mariadb-git-bb-10.4-MDEV-29022.tar.gz |
MDEV-29022 add_slave destroy child list and has dead codebb-10.4-MDEV-29022
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.
(in 10.4 all work in parser correctly)
Diffstat (limited to 'sql/sql_union.cc')
-rw-r--r-- | sql/sql_union.cc | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/sql/sql_union.cc b/sql/sql_union.cc index 70a521696d2..b878294bfef 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); - } } |