From: Michael Meskes Date: Sun, 18 Dec 2011 14:34:33 +0000 (+0100) Subject: In ecpg removed old leftover check for given connection name. X-Git-Tag: REL9_2_BETA1~679 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4b8b5e53eb6105924266bb32709042f710043b4e;p=postgresql 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 --- diff --git a/src/interfaces/ecpg/preproc/ecpg.addons b/src/interfaces/ecpg/preproc/ecpg.addons index 23421df56d..849a37cf9d 100644 --- a/src/interfaces/ecpg/preproc/ecpg.addons +++ b/src/interfaces/ecpg/preproc/ecpg.addons @@ -19,9 +19,6 @@ ECPG: stmtClosePortalStmt block } ECPG: stmtDeallocateStmt block { - if (connection) - mmerror(PARSE_ERROR, ET_ERROR, "AT option not allowed in DEALLOCATE statement"); - output_deallocate_prepare_statement($1); } ECPG: stmtDeclareCursorStmt block @@ -72,8 +69,6 @@ ECPG: stmtViewStmt rule } | ECPGDeallocateDescr { - if (connection) - mmerror(PARSE_ERROR, ET_ERROR, "AT option not allowed in DEALLOCATE statement"); fprintf(yyout,"ECPGdeallocate_desc(__LINE__, %s);",$1); whenever_action(0); free($1);