pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Jurka <books@ejurka.com>
To: Krishnakanth Rao <raokr@india.hp.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: error codes using JDBC
Date: Thu, 15 Jul 2004 04:12:46 -0500 (EST)
Message-ID: <Pine.BSO.4.56.0407150412010.32025@leary.csoft.net> (raw)
In-Reply-To: <001201c46a49$f94804e0$e72a0a0f@india.hp.com>
References: <001201c46a49$f94804e0$e72a0a0f@india.hp.com>



On Thu, 15 Jul 2004, Krishnakanth Rao wrote:

> I'am using the jdbc driver pg73jdbc3.jar in my jdbc code to acces PostGRE
> SQL. Whenever a sql exception occurs it doesnt give me the appropriate error
> code , eg referential integrity constraint voilated etc. The error code from
> the SQLException is always zero.

Error codes are a new feature and are only available when using a 7.4 or 
newer server and jdbc driver.

Kris Jurka



view thread (3+ messages)  latest in thread

Message-ID: <Pine.BSO.4.56.0407150412010.32025@leary.csoft.net>
Permalink:  ../Pine.BSO.4.56.0407150412010.32025@leary.csoft.net/
Also on:    postgresql.org/message-id/Pine.BSO.4.56.0407150412010.32025@leary.csoft.net

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: books@ejurka.com, raokr@india.hp.com
  Subject: Re: error codes using JDBC
  In-Reply-To: <Pine.BSO.4.56.0407150412010.32025@leary.csoft.net>
  References: <001201c46a49$f94804e0$e72a0a0f@india.hp.com> <Pine.BSO.4.56.0407150412010.32025@leary.csoft.net>

* 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