Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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)