dbTalk Databases Forums  

[BUGS] BUG #2266: SQL_ATTR_CONNECTION_DEAD always returns SQL_CD_TRUE

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] BUG #2266: SQL_ATTR_CONNECTION_DEAD always returns SQL_CD_TRUE in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Gerhard Lutz
 
Posts: n/a

Default [BUGS] BUG #2266: SQL_ATTR_CONNECTION_DEAD always returns SQL_CD_TRUE - 02-16-2006 , 08:48 AM







The following bug has been logged online:

Bug reference: 2266
Logged by: Gerhard Lutz
Email address: gerhard.lutz (AT) mbtech-group (DOT) 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?

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Reply With Quote
  #2  
Old   
Bruce Momjian
 
Posts: n/a

Default Re: [BUGS] BUG #2266: SQL_ATTR_CONNECTION_DEAD always returns SQL_CD_TRUE - 02-24-2006 , 12:51 PM







Please post this to the psqlodbc project. We don't do odbc support on
this list.

---------------------------------------------------------------------------

Gerhard Lutz wrote:
Quote:
The following bug has been logged online:

Bug reference: 2266
Logged by: Gerhard Lutz
Email address: gerhard.lutz (AT) mbtech-group (DOT) 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?

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

--
Bruce Momjian http://candle.pha.pa.us
SRA OSS, Inc. http://www.sraoss.com

+ If your life is a hard drive, Christ can be your backup. +

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.