diff options
Diffstat (limited to 'libsqlitepp/sqlite-modifycommand.cpp')
-rw-r--r-- | libsqlitepp/sqlite-modifycommand.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libsqlitepp/sqlite-modifycommand.cpp b/libsqlitepp/sqlite-modifycommand.cpp index df859ca..d69516d 100644 --- a/libsqlitepp/sqlite-modifycommand.cpp +++ b/libsqlitepp/sqlite-modifycommand.cpp @@ -15,7 +15,7 @@ SQLite::ModifyCommand::execute(bool anc) sqlite3_reset(stmt); throw Error(c->db); } - unsigned int rows = static_cast<unsigned int>(sqlite3_changes(c->db)); + auto rows = static_cast<unsigned int>(sqlite3_changes(c->db)); sqlite3_reset(stmt); if (rows == 0 && !anc) { throw DB::NoRowsAffected(); |