Un-break code generated by ECPGRelease production.

This commit is contained in:
Tom Lane 1999-08-22 20:37:24 +00:00
parent 78114cd4d4
commit c9d040d85e
1 changed files with 3 additions and 2 deletions

View File

@ -4992,9 +4992,10 @@ ECPGRelease: TransactionStmt SQL_RELEASE
if (strncmp($1, "begin", 5) == 0)
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);
fprintf(yyout, "ECPGdisconnect(\"\");");
fprintf(yyout, "ECPGdisconnect(__LINE__, \"\");");
whenever_action(0);
free($1);
}