BUG #1655: trapping errors doesn't work

From: "Emanuel Brokmann" <brokmann(dot)emanuel(at)ava(dot)de>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #1655: trapping errors doesn't work
Date: 2005-05-09 16:14:02
Message-ID: 20050509161402.2910BF0B00@svr2.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


The following bug has been logged online:

Bug reference: 1655
Logged by: Emanuel Brokmann
Email address: brokmann(dot)emanuel(at)ava(dot)de
PostgreSQL version: 8.0
Operating system: Red Hat Linux 3.2.3-42
Description: trapping errors doesn't work
Details:

while executing:

>>BEGIN
>> insert into comlineprintboxen VALUES(109, '', '', '', >>'', '');
>>EXCEPTION
>> WHEN unique_violation then
>> UPDATE comlineprintboxen SET verteiler='', >>panel='', dose='',
switch='', port='' WHERE >>printboxid=109
>>END;

the following error occurs:

>>ERROR: syntax error at or near "UPDATE" at character 8

i compared the command with the one from page 550 ff of the documentation,
but can't find differences.

Would be kind of you to help me

Emanuel Brokmann

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Dennis Bjorklund 2005-05-09 16:58:39 Re: set returning function
Previous Message Tom Lane 2005-05-09 14:29:57 Re: set returning function