summaryrefslogtreecommitdiff
path: root/libmysqlpp/my-modifycommand.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libmysqlpp/my-modifycommand.cpp')
-rw-r--r--libmysqlpp/my-modifycommand.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmysqlpp/my-modifycommand.cpp b/libmysqlpp/my-modifycommand.cpp
index dd607b3..9714638 100644
--- a/libmysqlpp/my-modifycommand.cpp
+++ b/libmysqlpp/my-modifycommand.cpp
@@ -15,9 +15,9 @@ MySQL::ModifyCommand::execute(bool anc)
if (mysql_stmt_execute(stmt.get())) {
throw Error(stmt.get());
}
- int rows = mysql_stmt_affected_rows(stmt.get());
+ auto rows = mysql_stmt_affected_rows(stmt.get());
if (rows == 0 && !anc) {
throw DB::NoRowsAffected();
}
- return rows;
+ return static_cast<unsigned int>(rows);
}