Skip to content

Query for SQL_ATTR_CONNECTION_DEAD is always SQL_CD_FALSE #270

@PeterHolik

Description

@PeterHolik

If firebird is restarted odbc queries fails and a connection check with

SQLGetConnectAttr(connection->con, SQL_ATTR_CONNECTION_DEAD, &dead, 0, 0);

always got SQL_CD_FALSE

That is not true because of restart of firebird!

firebird-odbc-driver/OdbcConnection.cpp

SQLRETURN OdbcConnection::sqlGetConnectAttr(int attribute, SQLPOINTER ptr, int bufferLength, SQLINTEGER *lengthPtr)
{
....
switch (attribute)
{
...
case SQL_ATTR_CONNECTION_DEAD:
value = SQL_CD_FALSE;
break;

I think here the connection to firebird should be checked

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions