Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-jdbc by date

Next:From: Oliver JowettDate: 2004-02-10 04:33:07
Subject: Re: closing statements when connection is closed
Previous:From: Dave CramerDate: 2004-02-10 04:16:42
Subject: closing statements when connection is closed

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group