Re: NullPointerException on next()

From: Joseph Shraibman <jks(at)selectacast(dot)net>
To: Rene Pijlman <rpijlman(at)wanadoo(dot)nl>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: NullPointerException on next()
Date: 2001-08-10 19:26:41
Message-ID: 3B743571.9040505@selectacast.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)selectacast(dot)net
Increase signal to noise ratio. http://www.targabot.com

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Tom Lane 2001-08-10 20:08:50 JDBC pg_description update needed for CVS tip
Previous Message Rene Pijlman 2001-08-10 19:18:07 Re: NullPointerException on next()