| От | Tom Lane |
|---|---|
| Тема | Re: error code 25001 |
| Дата | |
| Msg-id | 22745.1231335001@sss.pgh.pa.us обсуждение |
| Ответ на | error code 25001 (Tatsuo Ishii <ishii@postgresql.org>) |
| Список | pgsql-hackers |
Tatsuo Ishii <ishii@postgresql.org> writes:
> Error code 25001 is used for "SET TRANSACTION ISOLATION LEVEL must be
> called before any query" when it's an ERROR. However, it also means
> "there is already a transaction in progress" when it's a NOTICE.
> So we cannot distinguish them just by checking the error code.
> So my question is, an error code is used for both an error condition
> *and* a warning: is this normal?
I don't think that's the only case. Surely it's not that hard to tell
whether you have an error or not ...
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера