3
0
mirror of https://github.com/isar/rusqlite.git synced 2025-03-29 09:02:57 +08:00
This commit is contained in:
François 2024-02-27 15:02:46 +01:00
parent 695651ec32
commit c91face552

@ -1717,7 +1717,9 @@ mod test {
END;";
db.execute_batch(sql)?;
let total_changes_before = db.total_changes();
let changes = db.prepare("INSERT INTO foo_bar VALUES(null, 'baz');")?.execute([])?;
let changes = db
.prepare("INSERT INTO foo_bar VALUES(null, 'baz');")?
.execute([])?;
let total_changes_after = db.total_changes();
assert_eq!(changes, 0);
assert_eq!(total_changes_after - total_changes_before, 1);