Skip to content

Commit d104fe6

Browse files
committed
Merge 10.4 into 10.5
2 parents 80ed136 + ceed768 commit d104fe6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sql/sql_parse.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7709,16 +7709,15 @@ mysql_new_select(LEX *lex, bool move_down, SELECT_LEX *select_lex)
77097709
THD *thd= lex->thd;
77107710
bool new_select= select_lex == NULL;
77117711
int old_nest_level= lex->current_select->nest_level;
7712+
Name_resolution_context *curr_context= lex->context_stack.head();
77127713
DBUG_ENTER("mysql_new_select");
7713-
Name_resolution_context *curr_context;
77147714

77157715
if (new_select)
77167716
{
77177717
if (!(select_lex= new (thd->mem_root) SELECT_LEX()))
77187718
DBUG_RETURN(1);
77197719
select_lex->select_number= ++thd->lex->stmt_lex->current_select_number;
77207720
select_lex->parent_lex= lex; /* Used in init_query. */
7721-
curr_context= lex->context_stack.head();
77227721
select_lex->init_query();
77237722
select_lex->init_select();
77247723
}

0 commit comments

Comments
 (0)