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

From Oliver Jowett
Subject Re: SQLException and error code
Date
Msg-id 42E978EB.6020003@opencloud.com
Whole thread Raw
In response to Re: SQLException and error code  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
List pgsql-jdbc
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: smallint mapping issue
Next
From: Peter.Zoche@materna.de
Date:
Subject: Re: SQLException and error code