Expose sqlite3_changes (or sqlite3_changes64 if available)

This commit is contained in:
Thom Chiovoloni
2022-04-03 08:13:27 -07:00
parent f8b9ad8907
commit 899784379b
3 changed files with 13 additions and 7 deletions

View File

@@ -778,7 +778,7 @@ impl Statement<'_> {
let r = self.stmt.step();
self.stmt.reset();
match r {
ffi::SQLITE_DONE => Ok(self.conn.changes()),
ffi::SQLITE_DONE => Ok(self.conn.changes() as usize),
ffi::SQLITE_ROW => Err(Error::ExecuteReturnedResults),
_ => Err(self.conn.decode_result(r).unwrap_err()),
}