Skip to content

fix(db): check rows.Err after iterating query results - #539

Open
zombrax1 wants to merge 1 commit into
BaaRai:mainfrom
zombrax1:claude/rows-err-check
Open

zombrax1 wants to merge 1 commit into
BaaRai:mainfrom
zombrax1:claude/rows-err-check

Conversation

@zombrax1

Copy link
Copy Markdown

ListLogs, ListLogsBefore and the two task_relations reads in the task archive code never checked rows.Err(). When a result set fails partway (connection drop, statement timeout), Next returns false and closes the rows, so the later Close returns nil and the caller got a silently truncated list: missing log lines, or an archive whose source tasks are incomplete.

ListLogs, ListLogsBefore and the two task_relations reads in the task
archive code never checked rows.Err(). When a result set fails partway
(connection drop, statement timeout), Next returns false and closes the
rows, so the later Close returns nil and the caller got a silently
truncated list: missing log lines, or an archive whose source tasks
are incomplete.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JNRiKGwr3P1LP1njD8FbR4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants