Re: SQLException and error code - Mailing list pgsql-jdbc

From Peter.Zoche@materna.de
Subject Re: SQLException and error code
Date
Msg-id 3617A3C21370D045B75C0A40A7A6530D0B37E1A1@ntexc2buc.do-office.buc.materna.com
Whole thread Raw
In response to SQLException and error code  (Peter.Zoche@materna.de)
List pgsql-jdbc
I only have been confused by the naming of the following page:

http://www.postgresql.org/docs/8.0/interactive/errcodes-appendix.html

Its called "Appendix A. PostgreSQL Error Codes", so getErrorCode()
seems to be the best method! But confusion is cleared now.

Peter

Kevin Grittner wrote:
> To better support existing applications which (for reasons I don't
> really understand) rely on the vendor-specific errorCode instead of the
> ANSI-standard sqlState, you could implement getErrorCode as:
>
>     return Integer.parseInt(getSqlState(), 36);

Ow! It seems a bit pointless though, honestly..

Going to wait for a reply from the original poster, I still don't
understand what Peter wants getErrorCode() to return..

-O

pgsql-jdbc by date:

Previous
From: Oliver Jowett
Date:
Subject: Re: SQLException and error code
Next
From: Csaba Nagy
Date:
Subject: Bad plan for queries with IN clause