diff options
Diffstat (limited to 'sql/sql_prepare.cc')
-rw-r--r-- | sql/sql_prepare.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sql/sql_prepare.cc b/sql/sql_prepare.cc index 086d22b17d4..3cb4c4e8244 100644 --- a/sql/sql_prepare.cc +++ b/sql/sql_prepare.cc @@ -669,11 +669,10 @@ static bool parse_prepare_query(PREP_STMT *stmt, mysql_log.write(thd,COM_PREPARE,"%s",packet); mysql_init_query(thd); - thd->prepare_command=true; - thd->lex.param_count= 0; - LEX *lex=lex_start(thd, (uchar*) packet, length); lex->safe_to_cache_query= 0; + thd->prepare_command= TRUE; + thd->lex.param_count= 0; if (!yyparse((void *)thd) && !thd->is_fatal_error) error= send_prepare_results(stmt); lex_end(lex); |