Re: closing statements when connection is closed

Поиск
Список
Период
Сортировка
От Oliver Jowett
Тема Re: closing statements when connection is closed
Дата
Msg-id 402B0BE0.8070302@opencloud.com
обсуждение исходный текст
Ответ на Re: closing statements when connection is closed  (Dave Cramer <pg@fastcrypt.com>)
Список 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 по дате отправления:

Предыдущее
От: Dave Cramer
Дата:
Сообщение: Re: closing statements when connection is closed
Следующее
От: Guido Fiala
Дата:
Сообщение: updateBlob()-example?