Re: plpgsql error handling bug

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: plpgsql error handling bug
Дата
Msg-id 20040905101205.F29858@megazone.bigpanda.com
обсуждение исходный текст
Ответ на plpgsql error handling bug  (Ivan-Sun1@mail.ru)
Список pgsql-bugs
On Sun, 5 Sep 2004 Ivan-Sun1@mail.ru wrote:

> I found a bug in the behaviour of plpgsql error handling system
> while trying to handle foreign key violation exception.
>
> When this error occured, control doesn't jump to exception handling block.
> It moves to the next statement instead. When control leaves the
> function exception is occured. So it's impossible to handle this kind of
> exception.

IIRC that's because the check is not happening until after the function is
finished (at the end of the user sent statement). If so, then yes,
currently there'd be no way to handle the exception.

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Permissions problem with sequences
Следующее
От: Tom Lane
Дата:
Сообщение: Re: plpgsql error handling bug