Re: NullPointerException on next() - Mailing list pgsql-jdbc

From Joseph Shraibman
Subject Re: NullPointerException on next()
Date
Msg-id 3B743571.9040505@selectacast.net
Whole thread Raw
In response to NullPointerException on next()  (Joseph Shraibman <jks@selectacast.net>)
Responses Re: NullPointerException on next()  ("Thomas O'Dowd" <tom@nooper.com>)
List pgsql-jdbc
I think it used to work.  Anyway maybe an IllegalStateException should
be thrown instead of NullPointerException?


Rene Pijlman wrote:
> On Fri, 10 Aug 2001 14:06:08 -0400, you wrote:
>
>>I didn't close the statement.  I did use the statement again (to do an
>>update) before I called next(), is that a problem now?
>>
>
> Yes. Closing or re-executing the statement closes its ResultSet.
> This is per the JDBC spec, its not PostgreSQL-specific.
>
> Regards,
> René Pijlman
>


--
Joseph Shraibman
jks@selectacast.net
Increase signal to noise ratio.  http://www.targabot.com


pgsql-jdbc by date:

Previous
From: Rene Pijlman
Date:
Subject: Re: NullPointerException on next()
Next
From: Tom Lane
Date:
Subject: JDBC pg_description update needed for CVS tip