Re: PERFORM statement inside procedure - Mailing list pgsql-general

From Bill Moran
Subject Re: PERFORM statement inside procedure
Date
Msg-id 4072EA1A.9070309@potentialtech.com
Whole thread Raw
In response to PERFORM statement inside procedure  ("Rajat Katyal" <rajatk@intelesoftech.com>)
Responses Re: PERFORM statement inside procedure
List pgsql-general
Rajat Katyal wrote:
> Hi:
>
> In postgres documentation its written that if we execute query as
> PERFORM /query /inside our stored procedure/;/ *then the special
> variable FOUND is set to true if the query produced at least one row, or
> false if it produced no rows.*
> **
> But FOUND variable is always returning true even my query is
> returning *0 records.*

FOUND appears to work correctly in the hundreds of stored procedures I wrote
last month.  (At least, I haven't found any problems _yet_)

You might do well to post more details about your usage.  Best would be to
post the actual stored procedure you're having problems with, along with the
version of Postgres in use.

--
Bill Moran
Potential Technologies
http://www.potentialtech.com


pgsql-general by date:

Previous
From: tatyana.krasnokutsky@gsa.gov
Date:
Subject: tcl and pgrd problem
Next
From: Wes Palmer
Date:
Subject: thread_test.c problems