On Wed, Dec 01, 2004 at 07:11:44PM -0800, X X wrote:
> 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 think you're looking for PQresultErrorField() called with the
fieldcode argument set to PG_DIAG_SQLSTATE.
--
Michael Fuhr
http://www.fuhr.org/~mfuhr/