mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge 10.3 into 10.4
This commit is contained in:
@ -7607,6 +7607,7 @@ mysql_new_select(LEX *lex, bool move_down, SELECT_LEX *select_lex)
|
||||
bool new_select= select_lex == NULL;
|
||||
int old_nest_level= lex->current_select->nest_level;
|
||||
DBUG_ENTER("mysql_new_select");
|
||||
Name_resolution_context *curr_context;
|
||||
|
||||
if (new_select)
|
||||
{
|
||||
@ -7614,6 +7615,7 @@ mysql_new_select(LEX *lex, bool move_down, SELECT_LEX *select_lex)
|
||||
DBUG_RETURN(1);
|
||||
select_lex->select_number= ++thd->lex->stmt_lex->current_select_number;
|
||||
select_lex->parent_lex= lex; /* Used in init_query. */
|
||||
curr_context= lex->context_stack.head();
|
||||
select_lex->init_query();
|
||||
select_lex->init_select();
|
||||
}
|
||||
@ -7635,7 +7637,8 @@ mysql_new_select(LEX *lex, bool move_down, SELECT_LEX *select_lex)
|
||||
By default we assume that it is usual subselect and we have outer name
|
||||
resolution context, if no we will assign it to 0 later
|
||||
*/
|
||||
select_lex->context.outer_context= &select_lex->outer_select()->context;
|
||||
|
||||
select_lex->context.outer_context= curr_context;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user