Re: closing statements when connection is closed - Mailing list pgsql-jdbc

From David Wall
Subject Re: closing statements when connection is closed
Date
Msg-id 000b01c3ef8d$32b2c630$3201a8c0@rasta
Whole thread Raw
In response to closing statements when connection is closed  (Dave Cramer <pg@fastcrypt.com>)
List pgsql-jdbc
> It would appear from the documentation that we are supposed to clean up
> JDBC resources when Connecton.close is called, would this include
> statements. We currently don't track them or clean them up?
>
> Opinions ?

Well, closing a Statement/PreparedStatement should definitely close any open
ResultSet objects.  Closing a Connection should likely close any open
Statements/ResultSets, but that's not been an issue for us since we don't
really close our connections (they are returned to a pool instead).

David


pgsql-jdbc by date:

Previous
From: Dave Cramer
Date:
Subject: closing statements when connection is closed
Next
From: Oliver Jowett
Date:
Subject: Re: closing statements when connection is closed