Repository navigation
Close SQLite record connections without changing what callers get back - #2432
Merged
Merged
Conversation
get_sqlite_db_records runs the query at the call again and returns [] when it fails, so callers that test the result, read cursor.description or only probe a database behave as before. The rows come back in a small object that closes its cursor and connection when the rows run out, on close(), on a read error, and when it is dropped. A read error part way through a result reaches the caller instead of ending the rows quietly. PowerLog remembers a failed decompression only when the archive itself is damaged, so a passing I/O error does not blank the archive for the session. Co-Authored-By: Claude Opus 5.5 <[email protected]>
TestCase.enterContext arrived in Python 3.11. Use addCleanup instead. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Oct 9, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Closes the SQLite connection that
get_sqlite_db_recordsleft open. Built on #2431 by @CyberMike81, with the original commit kept.[]on failure, as before. As a generator it gave Teleguard Channels nodescriptionand never ran the Tutanota probe.felix23_ios16run on main and here: 295 tables, 945,842 rows, same rows.