diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2018-03-13 22:59:52 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2018-03-13 23:01:02 +0000 |
commit | ac73cf089e82447144674db7ebfaa4132d77091f (patch) | |
tree | ae1a8504b83720f4e347219fc03ab53885f51bbb /libodbcpp | |
parent | Tidy compile flags (diff) | |
download | libdbpp-odbc-ac73cf089e82447144674db7ebfaa4132d77091f.tar.bz2 libdbpp-odbc-ac73cf089e82447144674db7ebfaa4132d77091f.tar.xz libdbpp-odbc-ac73cf089e82447144674db7ebfaa4132d77091f.zip |
Don't throw in descructors
Diffstat (limited to 'libodbcpp')
-rw-r--r-- | libodbcpp/odbc-selectcommand.cpp | 5 |
1 files changed, 1 insertions, 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); } } |