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

From Kris Jurka
Subject Re: SQLException and error code
Date
Msg-id Pine.BSO.4.56.0507261152440.17237@leary.csoft.net
Whole thread Raw
In response to Re: SQLException and error code  (Peter.Zoche@materna.de)
List pgsql-jdbc

On Tue, 26 Jul 2005 Peter.Zoche@materna.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


pgsql-jdbc by date:

Previous
From: Mican Bican
Date:
Subject: installing postgresql 8 with an installer.
Next
From: "Kevin Grittner"
Date:
Subject: Re: Timestamp weirdness