aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2002-12-12 21:50:01 +0000
committerBruce Momjian <bruce@momjian.us>2002-12-12 21:50:01 +0000
commit5587f077ab6a9bdd99eaf71a38ed2245153d88d7 (patch)
tree15aaebded16ccdd247aaef3bc1084579089edb69
parentb73251686f2de90cafbb2a25516f5841bb8b13d5 (diff)
downloadpostgresql-5587f077ab6a9bdd99eaf71a38ed2245153d88d7.tar.gz
postgresql-5587f077ab6a9bdd99eaf71a38ed2245153d88d7.zip
While porting my TPC-C implementation from Oracle, I discovered the
attached problem with the EXEC SQL COMMIT RELEASE statement. Roland Karch
-rw-r--r--src/interfaces/ecpg/preproc/preproc.y5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/interfaces/ecpg/preproc/preproc.y b/src/interfaces/ecpg/preproc/preproc.y
index 83e4bf5283e..5968e292fc0 100644
--- a/src/interfaces/ecpg/preproc/preproc.y
+++ b/src/interfaces/ecpg/preproc/preproc.y
@@ -1,4 +1,4 @@
-/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/Attic/preproc.y,v 1.203 2002/11/27 08:30:27 meskes Exp $ */
+/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/Attic/preproc.y,v 1.204 2002/12/12 21:50:01 momjian Exp $ */
/* Copyright comment */
%{
@@ -4703,7 +4703,8 @@ ECPGRelease: TransactionStmt SQL_RELEASE
fprintf(yyout, "ECPGtrans(__LINE__, %s, \"%s\");",
connection ? connection : "NULL", $1);
whenever_action(0);
- fprintf(yyout, "ECPGdisconnect(__LINE__, \"\");");
+ fprintf(yyout, "ECPGdisconnect(__LINE__, %s);",
+ connection ? connection : "\"CURRENT\"");
whenever_action(0);
free($1);
}