| От | Michael Fuhr |
|---|---|
| Тема | Re: Reg : Error Handling |
| Дата | |
| Msg-id | 20051020061825.GA71430@winnie.fuhr.org обсуждение исходный текст |
| Ответ на | Re: Reg : Error Handling ("sandhya" <sandhyar@amiindia.co.in>) |
| Список | pgsql-admin |
On Thu, Oct 20, 2005 at 10:30:36AM +0530, sandhya wrote: > I am able to get the error code as a return value from the function using, > return (PQresultErrorField(res,PG_DIAG_SQLSTATE)); > Problem is i don't know how to generalize the messages once i get > this....Pls any one help me in this regard The "PostgreSQL Error Codes" appendix to the documentation explains what each SQLSTATE code means: http://www.postgresql.org/docs/8.0/interactive/errcodes-appendix.html See also server/utils/errcodes.h. I haven't found anywhere in the source code that provides mappings from SQLSTATE to generic messages, so you'll probably have to do that yourself. -- Michael Fuhr
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера