projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74e0159
)
I'm getting a SEGV error when testing ecpg using the perftest,or
author
Marc G. Fournier
Wed, 18 Feb 1998 01:30:42 +0000
(
01:30
+0000)
committer
Marc G. Fournier
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
src/interfaces/ecpg/lib/ecpglib.c
patch
|
blob
|
blame
|
history
diff --git
a/src/interfaces/ecpg/lib/ecpglib.c
b/src/interfaces/ecpg/lib/ecpglib.c
index 80e9b0fd9c48d93fd7c0a29b9f1ad112b5ca97bc..9f5911c477461334a24ff43630992cab6fc17f95 100644
(file)
--- a/
src/interfaces/ecpg/lib/ecpglib.c
+++ b/
src/interfaces/ecpg/lib/ecpglib.c
@@
-24,7
+24,7
@@
#include
#include
-static PGconn *simple_connection;
+static PGconn *simple_connection
= NULL
;
static int simple_debug = 0;
static FILE *debugstream = NULL;
static int committed = true;