Re: Handling SQL errors using libpq - Mailing list pgsql-interfaces

From Oliver Elphick
Subject Re: Handling SQL errors using libpq
Date
Msg-id 1038406548.13294.91.camel@linda.lfix.co.uk
Whole thread Raw
In response to Handling SQL errors using libpq  (brennan@unix2.netaxs.com (William Brennan))
List pgsql-interfaces
On Thu, 2002-11-21 at 18:37, William Brennan wrote:

> After a call to libpq, I would like to be able to recognize specific
> SQL errors which might occur, beyond the simple results obtainable
> via a call to PQresultStatus().  I want more precision.

You can get the actual error message with PQresultErrorMessage()

--
Oliver Elphick <olly@lfix.co.uk>
LFIX Limited

pgsql-interfaces by date:

Previous
From: "Jeff Urlwin"
Date:
Subject: Re: :PgSQL: More Queestions
Next
From: David Wheeler
Date:
Subject: Re: Interface update for 7.3