Commit c9d040d8 authored by Tom Lane's avatar Tom Lane

Un-break code generated by ECPGRelease production.

parent 78114cd4
...@@ -4992,9 +4992,10 @@ ECPGRelease: TransactionStmt SQL_RELEASE ...@@ -4992,9 +4992,10 @@ ECPGRelease: TransactionStmt SQL_RELEASE
if (strncmp($1, "begin", 5) == 0) if (strncmp($1, "begin", 5) == 0)
yyerror("RELEASE does not make sense when beginning a transaction"); yyerror("RELEASE does not make sense when beginning a transaction");
fprintf(yyout, "ECPGtrans(__LINE__, %s, \"%s\");", connection, $1); fprintf(yyout, "ECPGtrans(__LINE__, %s, \"%s\");",
connection ? connection : "NULL", $1);
whenever_action(0); whenever_action(0);
fprintf(yyout, "ECPGdisconnect(\"\");"); fprintf(yyout, "ECPGdisconnect(__LINE__, \"\");");
whenever_action(0); whenever_action(0);
free($1); free($1);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment