SQLite Forum

how can i simulate the failure of sqlite3_open(":memory:", &sqlite_db)?
Login

how can i simulate the failure of sqlite3_open(":memory:", &sqlite_db)?

(1) By anonymous on 2021-09-24 17:32:57 [source]

Is there a way to simulate the failure of

sqlite3_open(":memory:", &sqlite_db)
i.e return not equal to
SQLITE_OK
?

I need the failure for testing purposes.