| От | Tom Lane |
|---|---|
| Тема | Re: pl/pgsql exceptions |
| Дата | |
| Msg-id | 6151.1094273858@sss.pgh.pa.us обсуждение |
| Ответ на | pl/pgsql exceptions (Shelby Cain <alyandon@yahoo.com>) |
| Список | pgsql-general |
Shelby Cain <alyandon@yahoo.com> writes:
> Is there any way to retrieve the error code and error
> message text when an exception has been caught via
> "exception when others" in pl/pgsql?
Not yet. I'm open to suggestions though ...
> I'm looking
> essentially for the equivalent of Oracle's pl/sql
> sqlerrm and sqlcode variables.
We can't just copy those, since we aren't using SQLCODE error
numbers. I'm not sure how to map the error/detail/hint structure
into all this, either ... and does a plpgsql function want to see
localized message texts, or not?
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера