Re: SQLException and error code

From: Oliver Jowett <oliver(at)opencloud(dot)com>
To: Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov>
Cc: Peter(dot)Zoche(at)materna(dot)de, pgsql-jdbc(at)postgresql(dot)org
Subject: Re: SQLException and error code
Date: 2005-07-29 00:31:39
Message-ID: 42E978EB.6020003@opencloud.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Peter.Zoche 2005-07-29 06:53:42 Re: SQLException and error code
Previous Message Oliver Jowett 2005-07-29 00:26:01 Re: smallint mapping issue