BUG #1655: trapping errors doesn't work

Поиск
Список
Период
Сортировка
От Emanuel Brokmann
Тема BUG #1655: trapping errors doesn't work
Дата
Msg-id 20050509161402.2910BF0B00@svr2.postgresql.org
обсуждение исходный текст
Ответы Re: BUG #1655: trapping errors doesn't work  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
The following bug has been logged online:

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

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: set returning function
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #1655: trapping errors doesn't work