Skip site navigation (1) Skip section navigation (2)

Re: How do I get more error codes from libpq

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Fangbing Wu <fangbingw(at)gmail(dot)com>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: How do I get more error codes from libpq
Date: 2005-10-12 03:14:29
Message-ID: 20051012031428.GA27278@winnie.fuhr.org (view raw or flat)
Thread:
Lists: pgsql-interfaces
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

In response to

Responses

pgsql-interfaces by date

Next:From: Fangbing WuDate: 2005-10-13 00:12:57
Subject: Re: How do I get more error codes from libpq
Previous:From: Fangbing WuDate: 2005-10-12 02:59:19
Subject: How do I get more error codes from libpq

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group