Commit 4b8b5e53 authored by Michael Meskes's avatar Michael Meskes

In ecpg removed old leftover check for given connection name.

Ever since we introduced real prepared statements this should work for
different connections. The old solution just emulating prepared statements,
though, wasn't able to handle this.

Closes: #6309
parent 153c8dbd
...@@ -19,9 +19,6 @@ ECPG: stmtClosePortalStmt block ...@@ -19,9 +19,6 @@ ECPG: stmtClosePortalStmt block
} }
ECPG: stmtDeallocateStmt block ECPG: stmtDeallocateStmt block
{ {
if (connection)
mmerror(PARSE_ERROR, ET_ERROR, "AT option not allowed in DEALLOCATE statement");
output_deallocate_prepare_statement($1); output_deallocate_prepare_statement($1);
} }
ECPG: stmtDeclareCursorStmt block ECPG: stmtDeclareCursorStmt block
...@@ -72,8 +69,6 @@ ECPG: stmtViewStmt rule ...@@ -72,8 +69,6 @@ ECPG: stmtViewStmt rule
} }
| ECPGDeallocateDescr | ECPGDeallocateDescr
{ {
if (connection)
mmerror(PARSE_ERROR, ET_ERROR, "AT option not allowed in DEALLOCATE statement");
fprintf(yyout,"ECPGdeallocate_desc(__LINE__, %s);",$1); fprintf(yyout,"ECPGdeallocate_desc(__LINE__, %s);",$1);
whenever_action(0); whenever_action(0);
free($1); free($1);
......
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