postgres.git / summary / log / commit / refs
commit 458a83a526967dcc1ddbfc5edd5d48ae7db7a2a3
Author: Michael Meskes <meskes@postgresql.org>
Date: Sun Dec 18 14:34:33 2011 +0000
First released in: 9.2.0, 8.4.11, 9.0.7, 9.1.3
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
src/interfaces/ecpg/preproc/ecpg.addons | 5 -----
1 file changed, 5 deletions(-)
diff --git a/src/interfaces/ecpg/preproc/ecpg.addons b/src/interfaces/ecpg/preproc/ecpg.addons
index a6760d4b913..ff1864ca66e 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);
[parent: faa695580b07]