diff -r 3de41719d7eb -r a871779a4e3c src/Connection.cpp --- a/src/Connection.cpp Sun May 31 21:20:24 2020 +0200 +++ b/src/Connection.cpp Mon Jun 01 00:14:40 2020 +0200 @@ -34,8 +34,7 @@ Connection::~Connection() { SQLRETURN result = SQLDisconnect(connection); - // FIXME: do not throw exception from destructor - if (OdbcCommon::isNotSuccessful(result)) throw SqlException(L"Unable to disconnect: " + std::to_wstring(result)); + // TODO: log warning if disconnection failed? OdbcCommon::freeHandle(SQL_HANDLE_DBC, connection); }