summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2018-03-13 22:59:52 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2018-03-13 23:01:02 +0000
commitac73cf089e82447144674db7ebfaa4132d77091f (patch)
treeae1a8504b83720f4e347219fc03ab53885f51bbb
parentTidy compile flags (diff)
downloadlibdbpp-odbc-ac73cf089e82447144674db7ebfaa4132d77091f.tar.bz2
libdbpp-odbc-ac73cf089e82447144674db7ebfaa4132d77091f.tar.xz
libdbpp-odbc-ac73cf089e82447144674db7ebfaa4132d77091f.zip
Don't throw in descructors
-rw-r--r--libodbcpp/odbc-selectcommand.cpp5
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);
}
}