diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 1999-08-22 20:37:24 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 1999-08-22 20:37:24 +0000 |
| commit | c9d040d85e8fd7221cafac13f53880d120d5baa0 (patch) | |
| tree | 1803a6e0a1da3ed533f91b13d6df3435211c1a62 | |
| parent | 78114cd4d4fd99feb0c753de34d358b16d1ff0ee (diff) | |
| download | postgresql-c9d040d85e8fd7221cafac13f53880d120d5baa0.tar.gz | |
Un-break code generated by ECPGRelease production.
| -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 23eaa6d82c..a8c135b297 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); } |
