https://github.com/python/cpython/commit/2d05a0cc2eb884b151a3305df84e29949c63b895
commit: 2d05a0cc2eb884b151a3305df84e29949c63b895
branch: 3.13
author: Prithviraj Chaudhuri <[email protected]>
committer: hugovk <[email protected]>
date: 2025-11-30T14:33:05+02:00
summary:
[3.13] gh-140042: Removing unsafe call to sqlite3_shutdown (GH-141793) (#141812)
files:
A Misc/NEWS.d/next/C API/2025-11-18-04-16-09.gh-issue-140042.S1C7id.rst
M Modules/_sqlite/module.c
diff --git a/Misc/NEWS.d/next/C
API/2025-11-18-04-16-09.gh-issue-140042.S1C7id.rst b/Misc/NEWS.d/next/C
API/2025-11-18-04-16-09.gh-issue-140042.S1C7id.rst
new file mode 100644
index 00000000000000..608e806b431372
--- /dev/null
+++ b/Misc/NEWS.d/next/C API/2025-11-18-04-16-09.gh-issue-140042.S1C7id.rst
@@ -0,0 +1 @@
+Removed the sqlite3_shutdown call that could cause closing connections for
sqlite when used with multiple sub interpreters.
diff --git a/Modules/_sqlite/module.c b/Modules/_sqlite/module.c
index 2c25ee32e58189..3d828abdd80edb 100644
--- a/Modules/_sqlite/module.c
+++ b/Modules/_sqlite/module.c
@@ -751,7 +751,6 @@ module_exec(PyObject *module)
return 0;
error:
- sqlite3_shutdown();
return -1;
}
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]