summaryrefslogtreecommitdiff
path: root/libodbcpp/odbc-modifycommand.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-09-18 14:25:22 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2021-09-18 14:25:22 +0100
commitdbf98a34e08558b91328cb414447e9961c222033 (patch)
treebf339a91a584bd29dcde72463c05d26c3ac6bdc1 /libodbcpp/odbc-modifycommand.cpp
parentReplace straggling typedefs (diff)
downloadlibdbpp-odbc-dbf98a34e08558b91328cb414447e9961c222033.tar.bz2
libdbpp-odbc-dbf98a34e08558b91328cb414447e9961c222033.tar.xz
libdbpp-odbc-dbf98a34e08558b91328cb414447e9961c222033.zip
Add JT recommended warnings
Diffstat (limited to 'libodbcpp/odbc-modifycommand.cpp')
-rw-r--r--libodbcpp/odbc-modifycommand.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libodbcpp/odbc-modifycommand.cpp b/libodbcpp/odbc-modifycommand.cpp
index 2fca416..a5f5918 100644
--- a/libodbcpp/odbc-modifycommand.cpp
+++ b/libodbcpp/odbc-modifycommand.cpp
@@ -21,7 +21,7 @@ ODBC::ModifyCommand::execute(bool anc)
throw Error(rc, SQL_HANDLE_STMT, hStmt);
}
if (rows > 0 || anc) {
- return rows;
+ return static_cast<unsigned int>(rows);
}
throw DB::NoRowsAffected();
}