| От | Tom Lane |
|---|---|
| Тема | Re: Some macros for error field codes |
| Дата | |
| Msg-id | 3278.1059379028@sss.pgh.pa.us обсуждение |
| Ответ на | Some macros for error field codes (Peter Eisentraut <peter_e@gmx.net>) |
| Ответы |
Re: Some macros for error field codes
|
| Список | pgsql-hackers |
Peter Eisentraut <peter_e@gmx.net> writes:
> Should we create some user-friendly macros for the error field codes? I
> have a feeling that PGXYZ_SQLSTATE may make for better code than just 'C'.
I just pushed the ERRCODE_ macros out into their own file. How about
placing that file where client apps can include it directly?
Note though that I think client apps will want to test "is this code in
this class" about as often as they'll want to check for specific
codes. We might need to provide some additional infrastructure to
handle that.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера