What happens to a ResultSet when statement closed

From: Warren Little <wlittle(at)securitylending(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: What happens to a ResultSet when statement closed
Date: 2004-01-12 22:11:43
Message-ID: 1073945503.8050.36.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Consider the following code
....
ResultSet r = statement.executeQuery();
statement.close();
connection.close();

What happens to the ResultSet r?
What happens if I only close the statement, but continue to use
the connection?

--
Warren Little
Senior Vice President
Secondary Marketing
Security Lending Wholesale, LC
www.securitylending.com
Tel: 866-369-7763
Fax: 866-849-8082

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Kris Jurka 2004-01-12 22:21:54 Re: What happens to a ResultSet when statement closed
Previous Message Kris Jurka 2004-01-12 20:59:08 Re: I'm losing the data from a ResultSet