From ac73cf089e82447144674db7ebfaa4132d77091f Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 13 Mar 2018 22:59:52 +0000 Subject: Don't throw in descructors --- libodbcpp/odbc-selectcommand.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/libodbcpp/odbc-selectcommand.cpp b/libodbcpp/odbc-selectcommand.cpp index 6418501..5d0e96e 100644 --- a/libodbcpp/odbc-selectcommand.cpp +++ b/libodbcpp/odbc-selectcommand.cpp @@ -17,10 +17,7 @@ ODBC::SelectCommand::SelectCommand(const Connection & c, const std::string & s) ODBC::SelectCommand::~SelectCommand() { if (!columns->empty()) { - RETCODE rc = SQLCloseCursor(hStmt); - if (!SQL_SUCCEEDED(rc)) { - throw Error(rc, SQL_HANDLE_STMT, hStmt); - } + SQLCloseCursor(hStmt); } } -- cgit v1.2.3