Re: I must be blind... - Mailing list pgsql-general

From Tom Lane
Subject Re: I must be blind...
Date
Msg-id 9540.1024093553@sss.pgh.pa.us
Whole thread Raw
In response to Re: I must be blind...  ("Nigel J. Andrews" <nandrews@investsystems.co.uk>)
Responses Re: I must be blind...  (Alvaro Herrera <alvherre@atentus.com>)
List pgsql-general
"Nigel J. Andrews" <nandrews@investsystems.co.uk> writes:
> However, because PERFORM discards the results of a query it is only
> useful for side effects of the query. My usage of it was wrong since I
> wasn't using it for side effects merely for determining the existance
> of a result without having to store that result since it wasn't
> required. Therefore, with the correct syntax of PERFORM <query> my
> function doesn't generate an 'unprogrammed' error but the test of
> FOUND always fails, i.e. result is NOT FOUND. Therefore SELECT INTO
> dummy ... is still the correct thing for me to be doing.

Okay.  I guess the next question is whether PERFORM *should* be setting
FOUND.  Seems like it might be a reasonable thing to do.

Does PERFORM exist in Oracle's plsql?  If so, what does it do?

            regards, tom lane

pgsql-general by date:

Previous
From: "Nigel J. Andrews"
Date:
Subject: Re: I must be blind...
Next
From: chris.gamble@CPBINC.com
Date:
Subject: Problem with an SQL function