summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Momjian1998-06-16 05:50:55 +0000
committerBruce Momjian1998-06-16 05:50:55 +0000
commit67a636918a85fb29333d6b3c8d576ffe62f7df9a (patch)
tree90201b5084013179dec417f552500b82dd89be6e /src
parent29251149337d2d311cfb6d4895fbd460c5980dd4 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/interfaces/libpgtcl/pgtclCmds.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interfaces/libpgtcl/pgtclCmds.c b/src/interfaces/libpgtcl/pgtclCmds.c
index 5b3d5e91d54..5444c504175 100644
--- a/src/interfaces/libpgtcl/pgtclCmds.c
+++ b/src/interfaces/libpgtcl/pgtclCmds.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/pgtclCmds.c,v 1.25 1998/06/16 04:10:16 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/pgtclCmds.c,v 1.26 1998/06/16 05:50:55 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -442,7 +442,7 @@ Pg_exec(ClientData cData, Tcl_Interp *interp, int argc, char* argv[])
else {
/* error occurred during the query */
Tcl_SetResult(interp, conn->errorMessage, TCL_STATIC);
- if (connStatus == CONNECTION_OK) {
+ if (connStatus != CONNECTION_OK) {
/* Is this REALLY a good idea? I don't think so! */
PQreset(conn);
if (conn->status == CONNECTION_OK) {