]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-135386: Fix "unable to open database file" errors on readonly DB (GH-135566...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 8 Oct 2025 08:41:09 +0000 (10:41 +0200)
committerGitHub <noreply@github.com>
Wed, 8 Oct 2025 08:41:09 +0000 (11:41 +0300)
commit8ab7081015e6b7233762fea23452d50569fc20b5
tree5386f476197ccbf5c72a6f4e82920e35cff05ebb
parent51dfc67092475e6772485aac8394c342771f96af
[3.14] gh-135386: Fix "unable to open database file" errors on readonly DB (GH-135566) (GH-138056)

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>
Co-authored-by: Petr Viktorin <encukou@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]