Re: where to close statement ?

Поиск
Список
Период
Сортировка
От Joseph Shraibman
Тема Re: where to close statement ?
Дата
Msg-id 38FCA940.C3D36528@selectacast.net
обсуждение исходный текст
Ответ на RE: where to close statement ?  (Peter Mount <petermount@it.maidstone.gov.uk>)
Ответы Re: where to close statement ?  (Guillaume Rousse <Guillaume.Rousse@univ-reunion.fr>)
Список pgsql-interfaces
Peter Mount wrote:

> Ah, forgot that bit. I put them under finally as it always gets run,
> although you have to wrap them in a try{} win finally if the parent
> method doesn't throw SQLException.
>
> Peter
>

The problem with that is that close() itself can throw a SQLException so
you have to wrap it twice.




В списке pgsql-interfaces по дате отправления:

Предыдущее
От: Guillaume Rousse
Дата:
Сообщение: Re: psql & java
Следующее
От: Guillaume Rousse
Дата:
Сообщение: Re: where to close statement ?