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.0312112044080.25411-200000@leary.csoft.net
Whole thread Raw
In response to Re: Patch for some bugs/annoyances  (Patrick Higgins <phiggins@transzap.com>)
List pgsql-jdbc

On Thu, 11 Dec 2003, Patrick Higgins wrote:

> On Thu, 2003-12-11 at 14:32, Kris Jurka wrote:
> > 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.
>
> That sounds like a much better idea. I only used "null" because I didn't
> know better.
>

Here's a patch to that effect.  Also the Serializable part has already
been addressed.

Kris Jurka

Attachment

pgsql-jdbc by date:

Previous
From: Dave Cramer
Date:
Subject: Re: PostgreSQL & DB2 !!!
Next
From: Kris Jurka
Date:
Subject: Re: JDBC function call (getting resultset)