[issue30646] SQLite: sqlite3_enable_shared_cache() is deprecated

Erlend Egeberg Aasland report at bugs.python.org
Sat Sep 5 16:11:34 EDT 2020


Erlend Egeberg Aasland <erlend.aasland at innova.no> added the comment:

>From the SQLite docs https://sqlite.org/c3ref/enable_shared_cache.html:

"Note: This method is disabled on MacOS X 10.7 and iOS version 5.0 and will always return SQLITE_MISUSE. On those systems, shared cache mode should be enabled per-database connection via sqlite3_open_v2() with SQLITE_OPEN_SHAREDCACHE."

We should make sure sqlite3_open_v2() calls use SQLITE_OPEN_SHAREDCACHE if we are running on macOS. This should be a pretty straight-forward fix.

----------
nosy: +erlendaasland

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue30646>
_______________________________________


More information about the Python-bugs-list mailing list