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

From Oliver Jowett
Subject Re: closing statements when connection is closed
Date
Msg-id 402B0BE0.8070302@opencloud.com
Whole thread Raw
In response to Re: closing statements when connection is closed  (Dave Cramer <pg@fastcrypt.com>)
List 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

pgsql-jdbc by date:

Previous
From: Dave Cramer
Date:
Subject: Re: closing statements when connection is closed
Next
From: Guido Fiala
Date:
Subject: updateBlob()-example?