Skip to content

Conversation

@giulioungaretti
Copy link

This allows one to actually store and retrieve uint64 values stored as numeric in postgres.

The idea is taken from the default database/sql (https://golang.org/src/database/sql/driver/types.go#L213) .

I would like to write some tests for it but running any test (with master branch) just returns this :

--- FAIL: TestPgpass (0.00s)       conn_test.go:163: , unexpected error <nil> 

This allows one to actually store and retrieve uint64
values stored as numeric  in postgres.
arp242 added a commit that referenced this pull request Jan 19, 2026
So that scanning uint64 from e.g. numeric or text columns works.

Fixes #453
Fixes #624
arp242 added a commit that referenced this pull request Jan 19, 2026
So that scanning uint64 from e.g. numeric or text columns works.

Fixes #453
Fixes #624
@arp242 arp242 closed this in #1238 Jan 19, 2026
@arp242
Copy link
Collaborator

arp242 commented Jan 19, 2026

This was added in #1125 and #1238 with CheckNamedValue(), which does the same as the (now-deprecated) ColumnConverter().

pull bot pushed a commit to Swinsie/pq-fork that referenced this pull request Jan 19, 2026
So that scanning uint64 from e.g. numeric or text columns works.

Fixes lib#453
Fixes lib#624
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants