From: Martin Brommer <martin@brommer.nl>
To: pgsql-sql@postgresql.org
Subject: PERFORM / FOUND, what's up?
Date: Tue, 29 Apr 2003 10:21:01 +0200
Message-ID: <3eae35d4$0$49113$e4fe514c@news.xs4all.nl> (raw)
Hi,
I'm trying to get an answer from a dynamic query using perform. The
problem is that it sets the FOUND variable to true even when performing
bogus queries.
Am I missing something here? The documentation says that PERFORM only
sets FOUND to true if it finds and discards a row but doing something like:
qry := 'SELECT notafield FROM notatable'
PERFORM qry
Also sets FOUND to true, even more using a query like 'BLABLABLA' also
set found to true.
What am I doing wrong here?
Thanks for any help in advance,
Martin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: martin@brommer.nl
Subject: Re: PERFORM / FOUND, what's up?
In-Reply-To: <3eae35d4$0$49113$e4fe514c@news.xs4all.nl>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox