| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | "Emanuel Brokmann" <brokmann(dot)emanuel(at)ava(dot)de> |
| Cc: | pgsql-bugs(at)postgresql(dot)org |
| Subject: | Re: BUG #1655: trapping errors doesn't work |
| Date: | 2005-05-09 21:01:34 |
| Message-ID: | 1432.1115672494@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs |
"Emanuel Brokmann" <brokmann(dot)emanuel(at)ava(dot)de> writes:
> 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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Vincent Vanwynsberghe | 2005-05-10 08:07:51 | Bug Report with Postgres 7.4 on AIX 5.3 |
| Previous Message | Tom Lane | 2005-05-09 17:02:22 | Re: set returning function |