From: Kris Jurka <books@ejurka.com>
To: Kevin Grittner <Kevin.Grittner@wicourts.gov>
Cc: maxime.levesque@gmail.com
Cc: pgsql-jdbc@postgresql.org
Subject: Re: SQLException.getErrorCode ?
Date: Sat, 1 May 2010 15:44:21 -0400 (EDT)
Message-ID: <alpine.BSO.2.00.1005011540250.28968@leary.csoft.net> (raw)
In-Reply-To: <4BDC2BBD0200002500031157@gw.wicourts.gov>
References: <p2m554f5f781005010911te9f69ab9v12f20c3f2139e359@mail.gmail.com>
<alpine.BSO.2.00.1005011217130.13830@leary.csoft.net>
<4BDC2BBD0200002500031157@gw.wicourts.gov>
On Sat, 1 May 2010, Kevin Grittner wrote:
> Kris Jurka <books@ejurka.com> wrote:
>
>> As I said earlier you need to check SQLException.getSQLState, not
>> getErrorCode.
>
> Why anyone would want to use error code instead of SQLSTATE is
> beyond me, but since they're out there, perhaps we should implement
> getErrorCode to interpret SQLSTATE as a base 36 number, and return
> that number? It might take less time than fielding the next
> complaint. ;-)
>
> The biggest down side is that we'd have to document it....
>
Exactly, who's going to maintain this list of alternate error code
versions? If the main project was to put this version of the error codes
in the master table of error codes, then I guess it would be OK. I can't
imagine proposing that though, unless there are other driver projects that
are in the same position.
Kris Jurka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: books@ejurka.com, Kevin.Grittner@wicourts.gov, maxime.levesque@gmail.com
Subject: Re: SQLException.getErrorCode ?
In-Reply-To: <alpine.BSO.2.00.1005011540250.28968@leary.csoft.net>
References: <p2m554f5f781005010911te9f69ab9v12f20c3f2139e359@mail.gmail.com> <alpine.BSO.2.00.1005011217130.13830@leary.csoft.net> <4BDC2BBD0200002500031157@gw.wicourts.gov> <alpine.BSO.2.00.1005011540250.28968@leary.csoft.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox