dbTalk Databases Forums  

[BUGS] BUG #1655: trapping errors doesn't work

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] BUG #1655: trapping errors doesn't work in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Emanuel Brokmann
 
Posts: n/a

Default [BUGS] BUG #1655: trapping errors doesn't work - 05-09-2005 , 03:31 PM







The following bug has been logged online:

Bug reference: 1655
Logged by: Emanuel Brokmann
Email address: brokmann.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:

Quote:
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:

Quote:
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

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org


Reply With Quote
  #2  
Old   
Tom Lane
 
Posts: n/a

Default Re: [BUGS] BUG #1655: trapping errors doesn't work - 05-09-2005 , 04:02 PM






"Emanuel Brokmann" <brokmann.emanuel (AT) ava (DOT) de> writes:
Quote:
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
Can't help much with such an incomplete, mangled view of the problem :-(
You need to show us the full text of the CREATE FUNCTION command,
without random characters interspersed due to sloppy cut-and-paste.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo (AT) postgresql (DOT) org


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.