This commit is contained in:
François 2024-02-27 15:02:46 +01:00
parent 695651ec32
commit c91face552

View File

@ -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);