Re: PQstatus() detect change in connection...

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: PQstatus() detect change in connection...
Дата
Msg-id 8864.1003452667@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: PQstatus() detect change in connection...  (Matthew Hagerty <mhagerty@voyager.net>)
Список pgsql-hackers
Matthew Hagerty <mhagerty@voyager.net> writes:
> but I also want to check the connection 
> *before* submitting a query...

This strikes me as utterly pointless.  You'll need to be able to recover
from query failure anyway, so what's the value of testing beforehand?
Send the query and see if it works or not.
        regards, tom lane


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

Предыдущее
От: Gavin Sherry
Дата:
Сообщение: Re: Create or replace function doesn't work so well
Следующее
От: Hiroshi Inoue
Дата:
Сообщение: Re: ODBC SQLBindParameter and UNICODE strings