mirror of
https://github.com/MariaDB/server.git
synced 2025-07-02 14:22:51 +03:00
Merge 10.5 into 10.6
This commit is contained in:
@ -10399,6 +10399,15 @@ bool parse_sql(THD *thd, Parser_state *parser_state,
|
||||
|
||||
bool mysql_parse_status= thd->variables.sql_mode & MODE_ORACLE
|
||||
? ORAparse(thd) : MYSQLparse(thd);
|
||||
|
||||
if (mysql_parse_status)
|
||||
/*
|
||||
Restore the original LEX if it was replaced when parsing
|
||||
a stored procedure. We must ensure that a parsing error
|
||||
does not leave any side effects in the THD.
|
||||
*/
|
||||
LEX::cleanup_lex_after_parse_error(thd);
|
||||
|
||||
DBUG_ASSERT(opt_bootstrap || mysql_parse_status ||
|
||||
thd->lex->select_stack_top == 0);
|
||||
thd->lex->current_select= thd->lex->first_select_lex();
|
||||
|
Reference in New Issue
Block a user