mirror of
https://github.com/postgres/postgres.git
synced 2025-06-26 12:21:12 +03:00
Fix bogus error check in pg_execute, per report from lbayuk@mindspring.com.
This commit is contained in:
@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/pgtclCmds.c,v 1.60 2001/12/03 14:49:46 tgl Exp $
|
* $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/pgtclCmds.c,v 1.61 2002/03/04 02:41:49 tgl Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -909,7 +909,7 @@ Pg_execute(ClientData cData, Tcl_Interp *interp, int argc, char *argv[])
|
|||||||
|
|
||||||
sprintf(oid_buf, "%u", PQoidValue(result));
|
sprintf(oid_buf, "%u", PQoidValue(result));
|
||||||
if (Tcl_SetVar(interp, oid_varname, oid_buf,
|
if (Tcl_SetVar(interp, oid_varname, oid_buf,
|
||||||
TCL_LEAVE_ERR_MSG) != TCL_OK)
|
TCL_LEAVE_ERR_MSG) == NULL)
|
||||||
{
|
{
|
||||||
PQclear(result);
|
PQclear(result);
|
||||||
return TCL_ERROR;
|
return TCL_ERROR;
|
||||||
|
Reference in New Issue
Block a user