Skip to content

fix(sqlite): return an error for out-of-range timestamps - #65

Merged
lovasoa merged 2 commits into
mainfrom
codex/sqlite-timestamp-decode-error
Sep 28, 2026
Merged

lovasoa merged 2 commits into
mainfrom
codex/sqlite-timestamp-decode-error

Conversation

@lovasoa

@lovasoa lovasoa commented Sep 27, 2026

Copy link
Copy Markdown
Collaborator

Decoding a SQLite integer outside time's timestamp range as PrimitiveDateTime currently panics inside try_get/query_scalar, rather than returning a decoding error. Propagate the existing range error, matching the OffsetDateTime decoder.

The regression test reads i64::MIN and i64::MAX, checks the resulting ColumnDecode error and underlying ComponentRange, then verifies valid timestamps still decode on the same connection.

Validation: reproduced the panic with the regression test before the fix; all five SQLite time integration tests pass afterward. Formatting passes. Tests used Rust 1.98.1 and the committed lockfile, with system OpenSSL. The pre-existing Clippy deprecations are handled independently by #62.

@lovasoa
lovasoa enabled auto-merge September 27, 2026 23:28
@lovasoa
lovasoa added this pull request to the merge queue Sep 27, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks Sep 28, 2026
@lovasoa
lovasoa added this pull request to the merge queue Sep 28, 2026
@lovasoa
lovasoa removed this pull request from the merge queue due to a manual request Sep 28, 2026
@lovasoa
lovasoa added this pull request to the merge queue Sep 28, 2026
Merged via the queue into main with commit 6fa74ee Sep 28, 2026
27 checks passed
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.

1 participant