diff options
Diffstat (limited to 'src/interfaces')
-rw-r--r-- | src/interfaces/ecpg/preproc/preproc.y | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/interfaces/ecpg/preproc/preproc.y b/src/interfaces/ecpg/preproc/preproc.y index 23eaa6d82ce..a8c135b2977 100644 --- a/src/interfaces/ecpg/preproc/preproc.y +++ b/src/interfaces/ecpg/preproc/preproc.y @@ -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); } |