diff options
author | Marc G. Fournier <scrappy@hub.org> | 1998-02-18 01:30:42 +0000 |
---|---|---|
committer | Marc G. Fournier <scrappy@hub.org> | 1998-02-18 01:30:42 +0000 |
commit | cdfac31335ed2d108e657796bcd32caa04ae27e8 (patch) | |
tree | 89afffce12d7f2a94d6ec53cb281c6f5dcd590e5 | |
parent | 74e015916eaa670f8986a13cf523a9bd59b55595 (diff) | |
download | postgresql-cdfac31335ed2d108e657796bcd32caa04ae27e8.tar.gz postgresql-cdfac31335ed2d108e657796bcd32caa04ae27e8.zip |
I'm getting a SEGV error when testing ecpg using the perftest,or
any other, example program.
I have tracked this down to a call to PQfinish() in ECPGfinish()
that occurs before any connection is established.
From: Keith Parks <emkxp01@mtcc.demon.co.uk>
-rw-r--r-- | src/interfaces/ecpg/lib/ecpglib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interfaces/ecpg/lib/ecpglib.c b/src/interfaces/ecpg/lib/ecpglib.c index 80e9b0fd9c4..9f5911c4774 100644 --- a/src/interfaces/ecpg/lib/ecpglib.c +++ b/src/interfaces/ecpg/lib/ecpglib.c @@ -24,7 +24,7 @@ #include <libpq-fe.h> #include <libpq/pqcomm.h> -static PGconn *simple_connection; +static PGconn *simple_connection = NULL; static int simple_debug = 0; static FILE *debugstream = NULL; static int committed = true; |