Re: How do I get more error codes from libpq

Поиск
Список
Период
Сортировка
От Fangbing Wu
Тема Re: How do I get more error codes from libpq
Дата
Msg-id 6619c3340510121712r3c32f47dicd50ec82d065da4@mail.gmail.com
обсуждение исходный текст
Ответ на Re: How do I get more error codes from libpq  (Michael Fuhr <mike@fuhr.org>)
Ответы Re: How do I get more error codes from libpq  (Fangbing Wu <fangbingw@gmail.com>)
Список pgsql-interfaces
Yeah,

I'm still in the process of reading more of the doc. But my question is more like
when I get something like PGRES_BAD_RESPONSE or PGRES_NONFATAL_ERROR, how would
I go about to find out what's the cause of such an error?
Could it be due to access right problems or some other transient conditions?
Is there a way to get those info.?

Thanks!
Fangbing


On 10/11/05, Michael Fuhr <mike@fuhr.org> wrote:
On Tue, Oct 11, 2005 at 10:59:19PM -0400, Fangbing Wu wrote:
> I'm just getting started to use libpq to access my DB with
> PQexecParam etc.
> I'm still searching for ways to get detailed error codes from libpq,
> say when a request was denied due to permission etc.
> Is stuff like this possible?

Yes, just read a little farther down the "Command Execution Functions"
documentation:

http://www.postgresql.org/docs/8.0/interactive/libpq-exec.html

--
Michael Fuhr

В списке pgsql-interfaces по дате отправления:

Предыдущее
От: Michael Fuhr
Дата:
Сообщение: Re: How do I get more error codes from libpq
Следующее
От: Fangbing Wu
Дата:
Сообщение: Re: How do I get more error codes from libpq