Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 67a6369

Browse files
committed
There is a patch which has worked for me. The real problem might
be in PQreset, which can't reset a conninfo based connection. The patch: Arpad Magosanyi
1 parent 2925114 commit 67a6369

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/interfaces/libpgtcl/pgtclCmds.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/pgtclCmds.c,v 1.25 1998/06/16 04:10:16 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/pgtclCmds.c,v 1.26 1998/06/16 05:50:55 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -442,7 +442,7 @@ Pg_exec(ClientData cData, Tcl_Interp *interp, int argc, char* argv[])
442442
else {
443443
/* error occurred during the query */
444444
Tcl_SetResult(interp, conn->errorMessage, TCL_STATIC);
445-
if (connStatus == CONNECTION_OK) {
445+
if (connStatus != CONNECTION_OK) {
446446
/* Is this REALLY a good idea? I don't think so! */
447447
PQreset(conn);
448448
if (conn->status == CONNECTION_OK) {

0 commit comments

Comments
 (0)