Re: Patch for some bugs/annoyances - Mailing list pgsql-jdbc

From Kris Jurka
Subject Re: Patch for some bugs/annoyances
Date
Msg-id Pine.LNX.4.33.0312111627520.16693-100000@leary.csoft.net
Whole thread Raw
In response to Patch for some bugs/annoyances  (Patrick Higgins <phiggins@transzap.com>)
Responses Re: Patch for some bugs/annoyances
List pgsql-jdbc

On Thu, 11 Dec 2003, Patrick Higgins wrote:

> This first bug may have been causing the second; I can't remember
> anymore. Anyway, sometimes this.state in PSQLException is null causing
> getSQLState() to throw a NullPointerException. I've included a check for
> this and return the string "null" when the state is null.
>

I don't think returning "null" is correct.  I think
PSQLState.UNKNOWN_STATE should be used as the state when it is null.

Kris Jurka



pgsql-jdbc by date:

Previous
From: Patrick Higgins
Date:
Subject: Patch for some bugs/annoyances
Next
From: Kris Jurka
Date:
Subject: Re: [BUGS] BUG #1005: JDBC cancelRowUpdates() sets column values to