Re: Implementing setQueryTimeout()

Поиск
Список
Период
Сортировка
От Till Toenges
Тема Re: Implementing setQueryTimeout()
Дата
Msg-id 47BA95D5.40408@kyon.de
обсуждение исходный текст
Ответ на Re: Implementing setQueryTimeout()  (Oliver Jowett <oliver@opencloud.com>)
Ответы Re: Implementing setQueryTimeout()  (Oliver Jowett <oliver@opencloud.com>)
Список pgsql-jdbc
Oliver Jowett wrote:
>> A network timeout or anything worse is handled in an entirely
>> different part of the code. That is not the responsibility of the
>> driver, and doesn't event need to be part of the database related code
>> at all.
>
> I'm not sure what you mean here - if the connection to the DB fails, the
> driver will certainly handle that and tell you about it via a SQLException!

Sorry. Of course the driver must handle failed connections. I meant the
code in my application, which handles the two cases (timeout but usable
connection vs broken connection for whatever reason) differently.


Till

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

Предыдущее
От: Oliver Jowett
Дата:
Сообщение: Re: Implementing setQueryTimeout() - round 2
Следующее
От: Oliver Jowett
Дата:
Сообщение: Re: Implementing setQueryTimeout()