Commit 489bd557 authored by unknown's avatar unknown

error of parsing can occur in any SELECT, so all SELECTs have to be checked

parent 1ef48556
...@@ -163,7 +163,8 @@ void lex_start(THD *thd, uchar *buf,uint length) ...@@ -163,7 +163,8 @@ void lex_start(THD *thd, uchar *buf,uint length)
void lex_end(LEX *lex) void lex_end(LEX *lex)
{ {
lex->select_lex.expr_list.delete_elements(); // If error when parsing sql-varargs for(SELECT_LEX *sl= lex->all_selects_list; sl; sl= sl->next_select_in_list())
sl->expr_list.delete_elements(); // If error when parsing sql-varargs
x_free(lex->yacc_yyss); x_free(lex->yacc_yyss);
x_free(lex->yacc_yyvs); x_free(lex->yacc_yyvs);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment