Re: SQLException and error code

From: Kris Jurka <books(at)ejurka(dot)com>
To: Peter(dot)Zoche(at)materna(dot)de
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: SQLException and error code
Date: 2005-07-26 16:54:33
Message-ID: Pine.BSO.4.56.0507261152440.17237@leary.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

On Tue, 26 Jul 2005 Peter(dot)Zoche(at)materna(dot)de wrote:

> Because in the postgresql documentation you can find the following page:
>
> http://www.postgresql.org/docs/8.0/interactive/errcodes-appendix.html#ERRCOD
> ES-TABLE
>
> There you can see all ERROR CODES!
>
> So why is there a method getErrorCode(), if the only thing it does
> is to return zero?

The table is mislabeled a little bit, these are actually SQL State codes.
Note that getErrorCode returns an int, so certainly couldn't return a sql
state like "0100C".

Kris Jurka

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Kevin Grittner 2005-07-26 17:51:03 Re: Timestamp weirdness
Previous Message Mican Bican 2005-07-26 16:00:26 installing postgresql 8 with an installer.