Re: Handling SQL errors using libpq

From: Oliver Elphick <olly(at)lfix(dot)co(dot)uk>
To: William Brennan <brennan(at)unix2(dot)netaxs(dot)com>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: Handling SQL errors using libpq
Date: 2002-11-27 14:15:48
Message-ID: 1038406548.13294.91.camel@linda.lfix.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)lfix(dot)co(dot)uk>
LFIX Limited

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message David Wheeler 2002-11-27 15:16:52 Re: Interface update for 7.3
Previous Message Jason E. Stewart 2002-11-27 10:46:34 Re: Interface update for 7.3