From: | "Thomas O'Dowd" <tom(at)nooper(dot)com> |
---|---|
To: | Joseph Shraibman <jks(at)selectacast(dot)net> |
Cc: | Rene Pijlman <rpijlman(at)wanadoo(dot)nl>, pgsql-jdbc(at)postgresql(dot)org |
Subject: | Re: NullPointerException on next() |
Date: | 2001-08-11 02:40:29 |
Message-ID: | 20010811114029.M3388@beast.uwillsee.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
Yep, it used to work. I got caught by it too after an upgrade :) I think
you're right about the exception that's being thrown, it shouldn't be
the NullPointerException.
Tom.
On Fri, Aug 10, 2001 at 03:26:41PM -0400, Joseph Shraibman wrote:
> 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
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html
--
Thomas O'Dowd. - Nooping - http://nooper.com
tom(at)nooper(dot)com - Testing - http://nooper.co.jp/labs
From | Date | Subject | |
---|---|---|---|
Next Message | Bryan Field-Elliot | 2001-08-11 02:42:56 | How to read PG Circle and Point types from JDBC? |
Previous Message | Rene Pijlman | 2001-08-10 23:13:34 | Re: DatabaseMetaData |