Skip to content

Commit a616cbc

Browse files
committed
Fix bogus error check in pg_execute, per report from lbayuk@mindspring.com.
1 parent 36f693e commit a616cbc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/interfaces/libpgtcl/pgtclCmds.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/pgtclCmds.c,v 1.60 2001/12/03 14:49:46 tgl Exp $
11+
* $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/pgtclCmds.c,v 1.61 2002/03/04 02:41:49 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -909,7 +909,7 @@ Pg_execute(ClientData cData, Tcl_Interp *interp, int argc, char *argv[])
909909

910910
sprintf(oid_buf, "%u", PQoidValue(result));
911911
if (Tcl_SetVar(interp, oid_varname, oid_buf,
912-
TCL_LEAVE_ERR_MSG) != TCL_OK)
912+
TCL_LEAVE_ERR_MSG) == NULL)
913913
{
914914
PQclear(result);
915915
return TCL_ERROR;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy