Re: NullPointer error returned from ResultSet.java

From: Jeffrey Duffy <jeff(at)alanne(dot)com>
To: Dave Cramer <Dave(at)micro-automation(dot)net>
Cc: "pgsql-jdbc(at)postgresql(dot)org" <pgsql-jdbc(at)postgresql(dot)org>, Barry Lind <barry(at)xythos(dot)com>
Subject: Re: NullPointer error returned from ResultSet.java
Date: 2002-10-11 12:35:00
Message-ID: DB906F98-DD15-11D6-A243-0003938E68A6@alanne.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc


On Friday, October 11, 2002, at 06:14 AM, Dave Cramer wrote:

> Jeff,
>
> Can you show me how the statements are being created? I was partially
> correct, you can't have multiple result sets open on the same
> statement.
>
Dave,

Before I enter the first block, I predeclare all Statements and
ResultSets that will be used like so:

Statement stmt = conn.createStatement();
Statement stmt2 = conn.createStatement();
Statement stmt3 = conn.createStatement();
ResultSet rs, rs2, rs3;

I know you can't have many RS's per statement, but I'm very sure that
I am not attempting to do that. As I said before, this only seems to
happen when I have an executeUpdate call from within a nested rs.next()
loop, but it's definitely not the same statement object, which is why
it's puzzling.

Jeff

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Antti Haapala 2002-10-11 13:20:22 MySQL vs PostgreSQL.
Previous Message snpe 2002-10-11 12:27:40 Re: Out of memory error on huge resultset