From 106e46c4241baa9366d91b92ab0ac6aed36773d4 Mon Sep 17 00:00:00 2001 From: gwenn Date: Sun, 20 Mar 2022 12:19:21 +0100 Subject: [PATCH] Actually test DELETE, INSERT, UPDATE on vtablog --- src/vtab/vtablog.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/vtab/vtablog.rs b/src/vtab/vtablog.rs index a6f8985..34dde32 100644 --- a/src/vtab/vtablog.rs +++ b/src/vtab/vtablog.rs @@ -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(()) } }