Re: No return from trigger function

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: No return from trigger function
Дата
Msg-id 18475.1239221193@sss.pgh.pa.us
обсуждение исходный текст
Ответ на No return from trigger function  ("James B. Byrne" <byrnejb@harte-lyne.ca>)
Ответы Re: No return from trigger function  ("James B. Byrne" <byrnejb@harte-lyne.ca>)
Re: No return from trigger function  (Simon Riggs <simon@2ndQuadrant.com>)
Список pgsql-general
"James B. Byrne" <byrnejb@harte-lyne.ca> writes:
> I just need another set of eyes to see whatever it is that I am
> overlooking.

The RETURN is inside the EXCEPTION clause.

You really need two BEGINs here, one for the outer function body and
one for the exception block around the INSERT.

            regards, tom lane

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

Предыдущее
От: Guillaume Lelarge
Дата:
Сообщение: Re: No return from trigger function
Следующее
От: "James B. Byrne"
Дата:
Сообщение: Re: No return from trigger function