Re: an efficient way of checking if the connection to a db is actually open

Поиск
Список
Период
Сортировка
От Paul Thomas
Тема Re: an efficient way of checking if the connection to a db is actually open
Дата
Msg-id 20051215213811.E5278@bacon
обсуждение исходный текст
Ответ на an efficient way of checking if the connection to a db is actually open  (Assad Jarrahian <jarraa@gmail.com>)
Список pgsql-jdbc
On 15/12/2005 20:47 Assad Jarrahian wrote:
> The documentation says, the only real way is to actually call an sql
> statement on it. That seems inefficient. Is there any other way that is
> recommended?

Something like SELECT now() would be quick as doesn't involve any database
access.

--
Paul Thomas
+------------------------------+-------------------------------------------+
| Thomas Micro Systems Limited | Software Solutions for Business           |
| Computer Consultants         | http://www.thomas-micro-systems-ltd.co.uk |
+------------------------------+-------------------------------------------+

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

Предыдущее
От: Kris Jurka
Дата:
Сообщение: Re: an efficient way of checking if the connection to a db
Следующее
От: Kris Jurka
Дата:
Сообщение: Re: CallableStatements: index starts at 2