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

Re: closing statements when connection is closed

From: Oliver Jowett <oliver(at)opencloud(dot)com>
To: pg(at)fastcrypt(dot)com
Cc: "pgsql-jdbc(at)postgresql(dot)org" <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: closing statements when connection is closed
Date: 2004-02-12 05:15:12
Message-ID: 402B0BE0.8070302@opencloud.com (view raw or flat)
Thread:
Lists: pgsql-jdbc
Dave Cramer wrote:
> Oliver,
> 
> Can you help me out here, I'm considering a pretty simple solution
> 
> ie WeakHashMap of every statement created, and then iterate over the
> hashmap at the close and call close on the statement?
> 
> Is this overly simplistic?

Sounds like it might work -- I assume you'd have the Statement as the 
key and null values in the map?

-O

In response to

pgsql-jdbc by date

Next:From: Guido FialaDate: 2004-02-12 08:24:10
Subject: updateBlob()-example?
Previous:From: Dave CramerDate: 2004-02-12 04:22:16
Subject: Re: closing statements when connection is closed

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