pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Elphick <olly@lfix.co.uk>
To: William Brennan <brennan@unix2.netaxs.com>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: Handling SQL errors using libpq
Date: 27 Nov 2002 14:15:48 +0000
Message-ID: <1038406548.13294.91.camel@linda.lfix.co.uk> (raw)
In-Reply-To: <nJ9D9.575$cX3.467535@newshog.newsread.com>
References: <nJ9D9.575$cX3.467535@newshog.newsread.com>

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

Attachments:

  signature.asc (application/pgp-signature, 188B) download

view thread (2+ messages)

Message-ID: <1038406548.13294.91.camel@linda.lfix.co.uk>
Permalink:  ../1038406548.13294.91.camel@linda.lfix.co.uk/
Also on:    postgresql.org/message-id/1038406548.13294.91.camel@linda.lfix.co.uk

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: olly@lfix.co.uk, brennan@unix2.netaxs.com
  Subject: Re: Handling SQL errors using libpq
  In-Reply-To: <1038406548.13294.91.camel@linda.lfix.co.uk>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox