mirror of
https://github.com/allankoechke/turso.git
synced 2026-11-30 11:12:58 +00:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user