]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-135386: Fix "unable to open database file" errors on readonly DB (GH-135566)
authorGeneral_K1ng <generak1ng0@gmail.com>
Fri, 22 Aug 2025 11:11:59 +0000 (19:11 +0800)
committerGitHub <noreply@github.com>
Fri, 22 Aug 2025 11:11:59 +0000 (14:11 +0300)
commitc0ae92b7c07d8146bbcc6ed5197f97a7a16efded
tree4239463c5e90eed146b36a07773c701db7bfa2e0
parentf27af8ba8eb9cde3625003a44692a3e3c0dbc6fb
gh-135386: Fix "unable to open database file" errors on readonly DB (GH-135566)

Add immutable=1 flag for read-only SQLite access to avoid WAL/SHM errors on readonly DB.

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/dbm/sqlite3.py
Lib/test/test_dbm_sqlite3.py
Misc/NEWS.d/next/Library/2025-06-16-15-00-13.gh-issue-135386.lNrxLc.rst [new file with mode: 0644]