Skip to content

Commit cdfac31

Browse files
committed
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>
1 parent 74e0159 commit cdfac31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/interfaces/ecpg/lib/ecpglib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#include <libpq-fe.h>
2525
#include <libpq/pqcomm.h>
2626

27-
static PGconn *simple_connection;
27+
static PGconn *simple_connection = NULL;
2828
static int simple_debug = 0;
2929
static FILE *debugstream = NULL;
3030
static int committed = true;

0 commit comments

Comments
 (0)