summaryrefslogtreecommitdiff
path: root/libodbcpp/odbc-modifycommand.cpp
diff options
context:
space:
mode:
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)) {