db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Xanana Gusmao <gmaneNov.20.geekrun...@spamgourmet.com>
Subject Re: Derby-638 not actually resolved ?
Date Tue, 12 Dec 2006 04:00:58 GMT
On reading the javadoc, it is mentioned that:

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.

Thus I don't close the ResultSet anymore.

To solve the problem, Connection needs to be closed prior to Statements.

e.g. This does not throw any SQLException

finally
{
    try
    {
        conn.close(); 
        statement.close();
    }
    catch( SQLException sqle )
    {
       ...
    }
}





Mime
View raw message