-
Notifications
You must be signed in to change notification settings - Fork 82
Closed
Description
I'm using an in-memory database for testing, with multiple test groups where the database is created/destroyed around each group's tests. I was also using some Stmt's created using @prepare from DBInterface. This was resulting in test failures with exceptions like
SQLite.SQLiteException("Statement 2 not found")
I believe the problem was that the Stmt's cached in DBInterface's PREPARED_STMTS were not freed when the test database was destroyed; trying to use them with a freshly created database failed because there was no corresponding _StmtId in the Sqlite.DB. At any rate, I rewrote my code to remove uses of @prepare, and the problem was solved.
Perhaps this is worth a warning in the Sqlite package's documentation.
Metadata
Metadata
Assignees
Labels
No labels