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