-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
bpo-45126: Harden sqlite3
connection initialisation
#28227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
2571aa6
Clean up connection init, WIP
101253a
Use AC to simplify reference handling in __init__
c3efc54
Clear object if reinitialising
93fb30a
Make room for and include null terminator
0581d1f
Allow threads while closing database
ff81aff
Add borrowed refs comment
c30f06b
Improve naming: cached_statements => cache_size
401a1f0
Add tests
6d684b4
Adjustments
4f55bb8
Upgrade "bad reinit" test to include Petr's reproducer
87903ff
Always free callback contexts after closing database
73c2006
Improve "good" reinit test
4b06443
Deprecate reinitialisation
cec8f71
SQLite will clear callbacks when closing; remove explicit close
cb96a40
Revert "Deprecate reinitialisation"
1d98d7b
Merge branch 'main' into sqlite-cleanup-init
6f8ad16
Merge branch 'main' into sqlite-cleanup-init
371fd2f
Merge branch 'main' into sqlite-cleanup-init
f3a1f39
Clear database pointer before calling sqlite3_close_v2()
bbf2083
Merge branch 'main' into sqlite-cleanup-init
9045fa4
Merge branch 'main' into sqlite-cleanup-init
82e1f5e
Fix merge
83f6736
bpo-45512: Raise sqlite3.Connection.__init__ is called with bad isola…
257aba7
Merge branch 'main' into sqlite-cleanup-init
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.