Lists: | pgsql-jdbc |
---|
From: | Marcos Truchado <mtruchado(at)telefonica(dot)net> |
---|---|
To: | pgsql-jdbc(at)postgresql(dot)org |
Subject: | does SQLException.getErrorCode() now works? |
Date: | 2003-12-16 14:02:45 |
Message-ID: | 3FDF1085.1090508@telefonica.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-jdbc |
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.
|
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 |
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
>
>