MIDRANGE dot COM Mailing List Archive



Home » JAVA400-L » October 2002

RE: Relationship between JDBC Connections, Statements, ResultSets and open data paths



fixed

> If you close the ResultSet, the Statement remains open (as does the
> Connection).  If you close the Statement (without
> closing the ResultSet) The Statement is closed but the Connection is still
open
> and the ResultSet object still has scope.

I'm just curious - how does it correspond to the statement from JDBC
documentation (interface java.sql.ResultSet, method close()):

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

Does it mean IBM goes its own way here?  :)

Regards,
Timur







Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2014 by MIDRANGE dot COM and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available here. If you have questions about this, please contact