Re: plpgsql exception handling

Поиск
Список
Период
Сортировка
От Samuel Gendler
Тема Re: plpgsql exception handling
Дата
Msg-id AANLkTikqDNhUKr6fhDDFb1+=pbtHpGsQoLwKtNR4D727@mail.gmail.com
обсуждение исходный текст
Ответ на Re: plpgsql exception handling  (Uwe Bartels <uwe.bartels@gmail.com>)
Ответы Re: plpgsql exception handling  (Uwe Bartels <uwe.bartels@gmail.com>)
Список pgsql-sql


On Thu, Mar 10, 2011 at 12:45 AM, Uwe Bartels <uwe.bartels@gmail.com> wrote:
Hi,
Yes, of course is this sql producing an error.
The point is, I want to trap the error and handle it. Here in this case I set the variable l_state and l_message.


Doh!  Of course.  Sorry about that.  What happens when you explicitly catch the 42601 sql state or the syntax_error condition instead of 'others?'
 

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

Предыдущее
От: Uwe Bartels
Дата:
Сообщение: Re: plpgsql exception handling
Следующее
От: Uwe Bartels
Дата:
Сообщение: Re: plpgsql exception handling