Re: User's exception plpgsql

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема Re: User's exception plpgsql
Дата
Msg-id Pine.LNX.4.44.0507061937070.23774-100000@kix.fsv.cvut.cz
обсуждение исходный текст
Ответ на Re: User's exception plpgsql  (Neil Conway <neilc@samurai.com>)
Список pgsql-patches
>
> I really don't like the idea of introducing a new concept into the
> language ("exception variables") to resolve some ambiguous syntax. It
> would be another matter if exception variables actually provided
> something that strings do not...
>

In this time e.variables does it - only holds sqlstate and name.

You see only raise stmt. But there is part of begin exception block too.
without e.v. you have to catch users exception only via OTHERS or you have
to change syntax.

EXCEPTION WHEN SQLSTATE('0000') THEN

e.v. solve this problem. And I hope so can hold others info in future

Pavel


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

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: User's exception plpgsql
Следующее
От: Mark Deric
Дата:
Сообщение: More to Bad link Makefile patch