BUG #17981: HY000 server closed the connection unexpectedly - Mailing list pgsql-odbc

From Sayan Oruspay
Subject BUG #17981: HY000 server closed the connection unexpectedly
Date
Msg-id CANdk+b+eSm05tBKLFLXFa4j+CxC6+_XtyZfu5t2tqjpeDXB4Lw@mail.gmail.com
Whole thread Raw
List pgsql-odbc
I am writing an application on Windows that connects to the local database through psqlodbc. I want to make it automatically detect connection loss and reconnect. When I manually stop the database service and try to send a query, I get an error with sqlstate HY000 and the message ' server closed the connection unexpectedly'. Shouldn't sqlstate be something like 08S01? Also  SQLGetConnectAttr with SQL_ATTR_CONNECTION_DEAD does not produce the right value. The value it returns is always SQL_CD_FALSE.

pgsql-odbc by date:

Previous
From: "Huang, Yang"
Date:
Subject: Bug report - ODBC Driver - Postgresql ODBC driver crash found in customer environment
Next
From: Tom Hughes
Date:
Subject: [PATCH] Allow catalog (database) enumeration with SQLTables