]> granicus.if.org Git - postgresql/commitdiff
While porting my TPC-C implementation from Oracle, I discovered the
authorBruce Momjian <bruce@momjian.us>
Thu, 12 Dec 2002 21:50:01 +0000 (21:50 +0000)
committerBruce Momjian <bruce@momjian.us>
Thu, 12 Dec 2002 21:50:01 +0000 (21:50 +0000)
attached problem with the EXEC SQL COMMIT RELEASE statement.

Roland Karch

src/interfaces/ecpg/preproc/preproc.y

index 83e4bf5283e999b6db2ab2d4143f5bfa0b6d7e7d..5968e292fc088e9067de28d4dbd65378d41d3c0f 100644 (file)
@@ -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);
                }