]> granicus.if.org Git - postgresql/commitdiff
In ecpg removed old leftover check for given connection name.
authorMichael Meskes <meskes@postgresql.org>
Sun, 18 Dec 2011 14:34:33 +0000 (15:34 +0100)
committerMichael Meskes <meskes@postgresql.org>
Sun, 18 Dec 2011 17:45:39 +0000 (18:45 +0100)
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
src/interfaces/ecpg/preproc/ecpg.addons

index f6f9ff4313d410eb62bfa8b27c6988168bc2384a..9f0168611567c8ca06f6a3bea89ec00531e4d945 100644 (file)
@@ -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);