Re: [GENERAL] How to get an exception detail in a function called in exception handler

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [GENERAL] How to get an exception detail in a function called in exception handler
Дата
Msg-id 19259.1485274420@sss.pgh.pa.us
обсуждение исходный текст
Ответ на [GENERAL] How to get an exception detail in a function called in exception handler  (Shakti Singh <shakti.0123@gmail.com>)
Ответы Re: [GENERAL] How to get an exception detail in a function called inexception handler  (Shakti Singh <shakti.0123@gmail.com>)
Список pgsql-general
Shakti Singh <shakti.0123@gmail.com> writes:
> In oracle sqlcode and sqlerrm can be accessed in a function called from an
> exception block.
> How do I do this in PostgreSQL

In PG those are local variables within an exception block.  You'd have to
pass their values to the error-logging function explicitly.

            regards, tom lane


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

Предыдущее
От: Shakti Singh
Дата:
Сообщение: [GENERAL] How to get an exception detail in a function called in exception handler
Следующее
От: Shakti Singh
Дата:
Сообщение: Re: [GENERAL] How to get an exception detail in a function called inexception handler