mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-23 00:39:20 +08:00
Add basic unit test of statement debug including SQL
This commit is contained in:
parent
05669082a3
commit
d07c7ec8a6
@ -1161,4 +1161,13 @@ mod test {
|
|||||||
}
|
}
|
||||||
assert_eq!(db.last_insert_rowid(), 10);
|
assert_eq!(db.last_insert_rowid(), 10);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn test_statement_debugging() {
|
||||||
|
let db = checked_memory_handle();
|
||||||
|
let query = "SELECT 12345";
|
||||||
|
let stmt = db.prepare(query).unwrap();
|
||||||
|
|
||||||
|
assert!(format!("{:?}", stmt).contains(query));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user