From: renneyt@yahoo.com <renneyt@yahoo.com>
To: Jaime Casanova <systemguards@gmail.com>
Cc: postgres <pgsql-admin@postgresql.org>
Subject: Re: PLPGSQL/EXCEPTION HANDLING
Date: Tue, 13 Jun 2006 09:56:26 -0400
Message-ID: <448EC40A.5020102@yahoo.com> (raw)
In-Reply-To: <c2d9e70e0606122210m7965cc7ctda2e39b5e3738806@mail.gmail.com>
References: <448E453D.3080207@yahoo.com>
<c2d9e70e0606122210m7965cc7ctda2e39b5e3738806@mail.gmail.com>
Jaime Casanova wrote:
> On 6/12/06, renneyt@yahoo.com <renneyt@yahoo.com> wrote:
>> In a function implemented in 7.4.8 I had the following error when I call
>> the function:
>>
>> ERROR: syntax error at or near "EXCEPTION"
>>
>> Offending line is:
>> EXCEPTION WHEN dup_val_on_index THEN NULL;
>>
>> When this line is removed, all is well.
>>
>
> that's because that construction was added in 8.0, you have to upgrade
> to use it
>
What part of the original construction is not supported?
Are any "exception when" statements supported?
Thanks
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: renneyt@yahoo.com, systemguards@gmail.com
Subject: Re: PLPGSQL/EXCEPTION HANDLING
In-Reply-To: <448EC40A.5020102@yahoo.com>
References: <448E453D.3080207@yahoo.com> <c2d9e70e0606122210m7965cc7ctda2e39b5e3738806@mail.gmail.com> <448EC40A.5020102@yahoo.com>
* 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