From ad609d6e808e1d29d94199269a7997382a3c3955 Mon Sep 17 00:00:00 2001 From: "kostja@vajra.(none)" <> Date: Fri, 11 May 2007 17:26:12 +0400 Subject: Cleanup: now that we have Lex_input_stream, finish the transition by moving yet another relevant flag to it from struct LEX. --- sql/sql_yacc.yy | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'sql/sql_yacc.yy') diff --git a/sql/sql_yacc.yy b/sql/sql_yacc.yy index 390a991c7b6..847d4df6935 100644 --- a/sql/sql_yacc.yy +++ b/sql/sql_yacc.yy @@ -1276,11 +1276,6 @@ deallocate: { THD *thd=YYTHD; LEX *lex= thd->lex; - if (lex->stmt_prepare_mode) - { - my_parse_error(ER(ER_SYNTAX_ERROR)); - MYSQL_YYABORT; - } lex->sql_command= SQLCOM_DEALLOCATE_PREPARE; lex->prepared_stmt_name= $3; }; @@ -1296,11 +1291,6 @@ prepare: { THD *thd=YYTHD; LEX *lex= thd->lex; - if (lex->stmt_prepare_mode) - { - my_parse_error(ER(ER_SYNTAX_ERROR)); - MYSQL_YYABORT; - } lex->sql_command= SQLCOM_PREPARE; lex->prepared_stmt_name= $2; }; @@ -1326,11 +1316,6 @@ execute: { THD *thd=YYTHD; LEX *lex= thd->lex; - if (lex->stmt_prepare_mode) - { - my_parse_error(ER(ER_SYNTAX_ERROR)); - MYSQL_YYABORT; - } lex->sql_command= SQLCOM_EXECUTE; lex->prepared_stmt_name= $2; } -- cgit v1.2.1