]> granicus.if.org Git - postgresql/commitdiff
I'm getting a SEGV error when testing ecpg using the perftest,or
authorMarc G. Fournier <scrappy@hub.org>
Wed, 18 Feb 1998 01:30:42 +0000 (01:30 +0000)
committerMarc G. Fournier <scrappy@hub.org>
Wed, 18 Feb 1998 01:30:42 +0000 (01:30 +0000)
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>

src/interfaces/ecpg/lib/ecpglib.c

index 80e9b0fd9c48d93fd7c0a29b9f1ad112b5ca97bc..9f5911c477461334a24ff43630992cab6fc17f95 100644 (file)
@@ -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;