summaryrefslogtreecommitdiff
path: root/libodbcpp/odbc-modifycommand.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2015-12-29 05:16:51 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2015-12-29 06:00:08 +0000
commit50a3dbfd0fa9dbcdf542d64be26d6f44ba65998c (patch)
tree2c00d0fc906e2b246ca2df29e2dc61580cb37444 /libodbcpp/odbc-modifycommand.cpp
parentAdd missing override attribute (diff)
downloadlibdbpp-odbc-50a3dbfd0fa9dbcdf542d64be26d6f44ba65998c.tar.bz2
libdbpp-odbc-50a3dbfd0fa9dbcdf542d64be26d6f44ba65998c.tar.xz
libdbpp-odbc-50a3dbfd0fa9dbcdf542d64be26d6f44ba65998c.zip
Improve and centralise transaction handling logiclibdbpp-odbc-1.0.0
Diffstat (limited to 'libodbcpp/odbc-modifycommand.cpp')
-rw-r--r--libodbcpp/odbc-modifycommand.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libodbcpp/odbc-modifycommand.cpp b/libodbcpp/odbc-modifycommand.cpp
index cb6d3c0..0c49f92 100644
--- a/libodbcpp/odbc-modifycommand.cpp
+++ b/libodbcpp/odbc-modifycommand.cpp
@@ -16,11 +16,11 @@ unsigned int
ODBC::ModifyCommand::execute(bool anc)
{
RETCODE rc = SQLExecute(hStmt);
- if (!SQL_SUCCEEDED(rc)) {
+ if (!SQL_SUCCEEDED(rc)) {
if (rc != SQL_NO_DATA || !anc) {
throw Error(rc, SQL_HANDLE_STMT, hStmt);
}
- }
+ }
SQLLEN rows;
rc = SQLRowCount(hStmt, &rows);
if (!SQL_SUCCEEDED(rc)) {