summaryrefslogtreecommitdiff
path: root/sql/sql_lex.cc
diff options
context:
space:
mode:
authorunknown <hf@deer.(none)>2004-01-21 15:47:47 +0400
committerunknown <hf@deer.(none)>2004-01-21 15:47:47 +0400
commite71bd9d0ff8015c7ace40e4e51b0dbcf6789e733 (patch)
tree14f8a3cdb337dbe04025de729bf0fdad922a9d86 /sql/sql_lex.cc
parentb7a1c0793112450240097659a232d728571b2457 (diff)
downloadmariadb-git-e71bd9d0ff8015c7ace40e4e51b0dbcf6789e733.tar.gz
yet another cleanup()-related fix
sql/sql_lex.cc: We need these to be clean. Otherwise restoring of the order_list and group_list could fail in mysql_stmt_execute()
Diffstat (limited to 'sql/sql_lex.cc')
-rw-r--r--sql/sql_lex.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_lex.cc b/sql/sql_lex.cc
index efb0ce92ad0..fea16dccd4a 100644
--- a/sql/sql_lex.cc
+++ b/sql/sql_lex.cc
@@ -127,6 +127,8 @@ LEX *lex_start(THD *thd, uchar *buf,uint length)
lex->select_lex.expr_list.empty();
lex->select_lex.ftfunc_list_alloc.empty();
lex->select_lex.ftfunc_list= &lex->select_lex.ftfunc_list_alloc;
+ lex->select_lex.group_list.empty();
+ lex->select_lex.order_list.empty();
lex->current_select= &lex->select_lex;
lex->yacc_yyss=lex->yacc_yyvs=0;
lex->ignore_space=test(thd->variables.sql_mode & MODE_IGNORE_SPACE);