Skip to content

Bind integer parameters as checked SQLite integers - #356

Merged
quinnj merged 1 commit into
masterfrom
fix-unsigned-integer-binding
Sep 23, 2026
Merged

quinnj merged 1 commit into
masterfrom
fix-unsigned-integer-binding

Conversation

@quinnj

@quinnj quinnj commented Sep 22, 2026

Copy link
Copy Markdown
Member

Integer parameters other than Int32, Int64, and Bool fell through to Julia serialization and were stored as BLOBs. A query using UInt16(1000) therefore did not match an INTEGER row containing 1000, and strict table loading failed.

Route Integer bindings through checked Int64 conversion in the shared binding method. Values outside SQLite's signed 64-bit range now raise InexactError instead of being serialized. Existing serialized rows remain readable; this change does not migrate them. UDF return serialization is unchanged.

Refs #313.

Validation: the new tests failed before the fix. All 308 tests pass on Julia 1.9.4, 1.12.7, and 1.13.0. Coverage includes 11 integer types, positional and named parameters, SQL equality/storage type, strict-table loading, Int64 limits, and overflow rejection. The original 1000 query also passed across nine integer types.

Co-authored by Codex

@quinnj
quinnj merged commit 9e91900 into master Sep 23, 2026
6 checks passed
@quinnj
quinnj deleted the fix-unsigned-integer-binding branch September 23, 2026 00:58
quinnj referenced this pull request Sep 30, 2026
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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