Re: does SQLException.getErrorCode() now works?

From: Dave Cramer <pg(at)fastcrypt(dot)com>
To: Marcos Truchado <mtruchado(at)telefonica(dot)net>
Cc: "pgsql-jdbc(at)postgresql(dot)org" <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: does SQLException.getErrorCode() now works?
Date: 2003-12-16 14:20:47
Message-ID: 1071584447.1693.507.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

error codes were only implemented in the 7.4 version of postgres, so a
7.3 db or driver won't know what to do with them.

The file to look in is org/postgresql/util/PSQLState.java

Dave

On Tue, 2003-12-16 at 09:02, Marcos Truchado wrote:
> Hi:
> I'm wondeirng if SQLException => getErrorCode()| method works with the
> new JDBC 7.4 drivers. I have tested it with the old 7.3 and did not
> work, but I have read something about error codes in the postgresql
> webpage, can anyone tell me if it is allready implemented?, if not, when
> a error becomes, how to know what kind of error do I have?, I need to
> know it to response in my program with this or that action. If yes,
> where to find a list of error codes?.
>
> Thanks very much.
> |
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>
>

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Dave Cramer 2003-12-16 14:34:50 Re: FW: OID, compatible=7.1 and getBinaryStream() in 7.4
Previous Message Marcos Truchado 2003-12-16 14:02:45 does SQLException.getErrorCode() now works?