Actually test DELETE, INSERT, UPDATE on vtablog

This commit is contained in:
gwenn 2022-03-20 12:19:21 +01:00 committed by Thom Chiovoloni
parent aa511ea337
commit 106e46c424

View File

@ -286,6 +286,12 @@ mod test {
let mut stmt = db.prepare("SELECT * FROM log;")?;
let mut rows = stmt.query([])?;
while rows.next()?.is_some() {}
db.execute("DELETE FROM log WHERE a = ?", ["a1"])?;
db.execute(
"INSERT INTO log (a, b, c) VALUES (?, ?, ?)",
["a", "b", "c"],
)?;
db.execute("UPDATE log SET b = ?, c = ? WHERE a = ?", ["bn", "cn", "a1"])?;
Ok(())
}
}