Commit 016bbd57 authored by unknown's avatar unknown

BUG #16596

Moved init to lex_start


sql/sql_lex.cc:
  Added init to lex_start
sql/sql_yacc.yy:
  Removed init from CREATE INDEX code
parent 76871696
...@@ -179,6 +179,7 @@ void lex_start(THD *thd, const uchar *buf, uint length) ...@@ -179,6 +179,7 @@ void lex_start(THD *thd, const uchar *buf, uint length)
lex->query_tables_own_last= 0; lex->query_tables_own_last= 0;
lex->escape_used= lex->et_compile_phase= FALSE; lex->escape_used= lex->et_compile_phase= FALSE;
lex->name= 0;
lex->et= NULL; lex->et= NULL;
if (lex->sroutines.records) if (lex->sroutines.records)
......
...@@ -1229,7 +1229,6 @@ create: ...@@ -1229,7 +1229,6 @@ create:
lex->key_list.empty(); lex->key_list.empty();
lex->col_list.empty(); lex->col_list.empty();
lex->change=NullS; lex->change=NullS;
lex->name=0;
} }
'(' key_list ')' opt_fulltext_parser '(' key_list ')' opt_fulltext_parser
{ {
......
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