| От | X X |
|---|---|
| Тема | libpq: how to get error code (not message) |
| Дата | |
| Msg-id | 20041202031144.68001.qmail@web51106.mail.yahoo.com обсуждение |
| Ответы |
Re: libpq: how to get error code (not message)
|
| Список | pgsql-interfaces |
Hello, I'm writing a client in C++ using the C-library (libpq) interface to PostgreSQL server. I would like to know what function to call to obtain one of the codes listed at http://www.postgresql.org/docs/7.4/static/errcodes-appendix.html (I'm aware from other postings that in JDBC it would be a getSQLState() call, but what if I have to code the client in C/C++ and use libpq ?) I found that the error codes are defined in file errcodes.h under the /server include directory, but can't find the client-side function that returns them. Any hints are much appreciated, Serge __________________________________ Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. http://promotions.yahoo.com/new_mail
В списке pgsql-interfaces по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера