src/Connection.cpp
branchv_0
changeset 38 a871779a4e3c
parent 37 3de41719d7eb
child 39 b4af13653313
--- 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);
 }