mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge 10.4 into 10.5
This commit is contained in:
@@ -10380,11 +10380,13 @@ void LEX::relink_hack(st_select_lex *select_lex)
|
||||
{
|
||||
if (!select_stack_top) // Statements of the second type
|
||||
{
|
||||
if (!select_lex->get_master()->get_master())
|
||||
((st_select_lex *) select_lex->get_master())->
|
||||
set_master(&builtin_select);
|
||||
if (!builtin_select.get_slave())
|
||||
builtin_select.set_slave(select_lex->get_master());
|
||||
if (!select_lex->outer_select() &&
|
||||
!builtin_select.first_inner_unit())
|
||||
{
|
||||
builtin_select.register_unit(select_lex->master_unit(),
|
||||
&builtin_select.context);
|
||||
builtin_select.add_statistics(select_lex->master_unit());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user