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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-jdbc by date

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