Re: closing statements when connection is closed

From: "David Wall" <d(dot)wall(at)computer(dot)org>
To: <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: closing statements when connection is closed
Date: 2004-02-10 04:20:21
Message-ID: 000b01c3ef8d$32b2c630$3201a8c0@rasta
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Oliver Jowett 2004-02-10 04:33:07 Re: closing statements when connection is closed
Previous Message Dave Cramer 2004-02-10 04:16:42 closing statements when connection is closed