mirror of
https://github.com/isar/rusqlite.git
synced 2025-03-26 07:16:05 +08:00
format
This commit is contained in:
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user