From: Fernando Hevia <fhevia@ip-tel.com.ar>
To: 'Andrew Sullivan' <ajs@crankycanuck.ca>
To: pgsql-sql@postgresql.org
Subject: Re: NO DATA FOUND Exception
Date: Mon, 25 Jun 2007 16:55:58 -0300
Message-ID: <04ed01c7b762$da216c50$8f01010a@iptel.com.ar> (raw)
In-Reply-To: <20070625193521.GI19717@phlogiston.dyndns.org>
>On Mon, Jun 25, 2007 at 04:20:37PM -0300, Fernando Hevia wrote:
>> when <<data_found>> then return variable;
>> when <<no_data_found>> then <<do nothing/continue>> ;
>> when <<any_other_exception>> then <<raise some error message>> ;
>
>Check out the FOUND variable in the documentation for the first two,
>and the "trapping errors" section for the latter.
>
>Andrew Sullivan | ajs@crankycanuck.ca
Thanks for the tip. I was looking in the wrong place.
The FOUND variable is explained in chapter "37.6.6. Obtaining the Result
Status".
Thanks again,
Fernando.
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: fhevia@ip-tel.com.ar, ajs@crankycanuck.ca
Subject: Re: NO DATA FOUND Exception
In-Reply-To: <04ed01c7b762$da216c50$8f01010a@iptel.com.ar>
* 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