Re: error note - Mailing list pgsql-jdbc

From Guillaume Cottenceau
Subject Re: error note
Date
Msg-id 877j8i6olx.fsf@meuh.mnc.lan
Whole thread Raw
In response to error note  (Roger Pack <roger.byucougar@gmail.com>)
List pgsql-jdbc
Roger Pack <roger.byucougar 'at' gmail.com> writes:

> Lacking a better place to send this, it turns out that the error message
> org.postgresql.util.PSQLException: This ResultSet is closed.
> in JSP's may mean that you uses a Statement, return a resultset from that
> same statement, then (without finishing with the resultset) you re-use the
> statement (which re-sets the resultset) then try to re-use the resultset (
> i.e. be careful with using the same statement over and over).
> Just a note for those who run into this.

Per Sun documentation.

"A ResultSet object is automatically closed when the Statement
object that generated it is closed, re-executed, or used to
retrieve the next result from a sequence of multiple results."

http://java.sun.com/j2se/1.4.2/docs/api/java/sql/ResultSet.html

--
Guillaume Cottenceau

pgsql-jdbc by date:

Previous
From: Kris Jurka
Date:
Subject: Re: [BUGS] BUG #2220: PostgreSQL-JDBC 8.1-404 fails to compile with
Next
From: Guillaume Cottenceau
Date:
Subject: Re: Postgres-JDBC question