]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-135386: Fix "unable to open database file" errors on readonly DB (GH-135566...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 22 Aug 2025 11:35:21 +0000 (13:35 +0200)
committerGitHub <noreply@github.com>
Fri, 22 Aug 2025 11:35:21 +0000 (11:35 +0000)
commit8f2280272d7e551047b7fb3f7baea885275247b1
tree3f5f9506ad35db3e18594bcd4df2ae279a5f6c99
parenta73515e7475c7abc7614c9f59d497af5b8709585
[3.13] gh-135386: Fix "unable to open database file" errors on readonly DB (GH-135566) (GH-138057)

Add immutable=1 flag for read-only SQLite access to avoid WAL/SHM errors on readonly DB.
(cherry picked from commit c0ae92b7c07d8146bbcc6ed5197f97a7a16efded)

Co-authored-by: General_K1ng <generak1ng0@gmail.com>
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]