SQLite Forum

WAL files deleted
Login
SQLite version 3.35.5 seems to be deleting the -wal and -shm files for a database when closing it, under at least some circumstances. This of course makes it impossible to read the database without write permissions for the enclosing directory. This behaviour seems to be a relatively recent change, as I'm unable to reproduce it with 3.28.0.

Is this a bug, or a deliberate change? If the latter, is there a way to prevent the files from being deleted?