fuzz: supply the SQLite dialect when opening the schema database

Database::open_file now requires an explicit dialect. Select the SQLite
dialect so the schema target builds and can execute its comparisons
against SQLite again.

Tests: cargo +nightly fuzz build --dev schema; eight fixed inputs covering
table creation, indexes, and renames. LeakSanitizer reports retained core
CompletionGroup allocations during these runs; no SQL assertions failed.
This commit is contained in:
Daniel Karlsson
2026-09-07 19:20:38 +02:00
parent 2364b99a19
commit 7ae1693131

View File

@@ -335,7 +335,11 @@ fn do_fuzz(Ops(ops): Ops) -> Result<Corpus, Box<dyn Error>> {
let rusqlite_conn = rusqlite::Connection::open_in_memory()?;
let io = Arc::new(turso_core::MemoryIO::new());
let db = turso_core::Database::open_file(io.clone(), ":memory:", false)?;
let db = turso_core::Database::open_file(
io.clone(),
":memory:",
Arc::new(turso_core::SqliteDialect),
)?;
let limbo_conn = db.connect()?;
for op in ops {