BUG #2266: SQL_ATTR_CONNECTION_DEAD always returns SQL_CD_TRUE

Поиск
Список
Период
Сортировка
От Gerhard Lutz
Тема BUG #2266: SQL_ATTR_CONNECTION_DEAD always returns SQL_CD_TRUE
Дата
Msg-id 20060216135029.A347AF0B05@svr2.postgresql.org
обсуждение исходный текст
Ответы Re: BUG #2266: SQL_ATTR_CONNECTION_DEAD always returns SQL_CD_TRUE  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-bugs
The following bug has been logged online:

Bug reference:      2266
Logged by:          Gerhard Lutz
Email address:      gerhard.lutz@mbtech-group.com
PostgreSQL version: 8.1.3
Operating system:   Windows XP SP2
Description:        SQL_ATTR_CONNECTION_DEAD always returns SQL_CD_TRUE
Details:

I want to upgrade my PostgreSQL server from 8.0.4 to 8.1.3.
My C++ application connects to the database via ODBC (ODBC driver:
PostgreSQL Unicode).

In 8.0.4 I was able to check after an error if the database connection get
lost.

::SQLGetConnectAttr(g_hDBConnection, SQL_ATTR_CONNECTION_DEAD,
&uConnectionDead, 0, &nLen);

returned SQL_CD_TRUE or SQL_CD_FALSE.

In 8.1.3 this function always returns SQL_CD_TRUE, even when the database
connection is still available. Has this to do with ODBC 3.5 or is it a bug
in the ODBC driver?

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

Предыдущее
От: Marko Kreen
Дата:
Сообщение: Re: BUG #2260: PGCrypto Memory Problem
Следующее
От: "Gerhard Lutz"
Дата:
Сообщение: BUG #2267: Accessing large objects via ODBC