Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SQLite3 threadsafe property aligned with effective module capabilities. Currently only the module can be used by multiple threads
4 changes: 2 additions & 2 deletions Modules/_sqlite/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -528,8 +528,8 @@ get_threadsafety(pysqlite_state *state)
switch (mode) {
case 0: // Single-thread mode; threads may not share the module.
return 0;
case 1: // Serialized mode; threads may share the module,
return 3; // connections, and cursors.
case 1: // Serialized mode; until #118172 is fixed, is the same as
return 1; // Multi-thread mode.
case 2: // Multi-thread mode; threads may share the module, but not
return 1; // connections.
default:
Expand Down
Loading