You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Additional context func (n *NullInt64) Scan(value any) seems to not be called. Want to know if I missed something somewhere between v4 and v5 or I can investigate further more.
I also tried to use a pgtype.Int8 same result.
func (m *Map) PlanScan(oid uint32, formatCode int16, target any) ScanPlan seems to have changed a lot between v4 and v5.
Thanks for your time.
The text was updated successfully, but these errors were encountered:
Describe the bug
It seems since v5, pgx.ScanRow cannot scan a
null::INTERGER
to asql.NullInt64
.In v4, I confirm It worked.
To Reproduce
Both function do the same thing. Querying and scanning a
null::INTEGER
Expected behavior
Reading the CHANGELOG, I can't see anything about that behaviour.
Actual behavior
In v5 an error occurs:
pgxV4.ScanRow(): can't scan into dest[0]: strconv.ParseInt: parsing "": invalid syntax
Version
go version go1.22.2 linux/amd64
PostgreSQL 15.4 (Debian 15.4-2.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit
github.com/jackc/pgx/v4 v4.18.3
github.com/jackc/pgx/v5 v5.5.5
Additional context
func (n *NullInt64) Scan(value any)
seems to not be called. Want to know if I missed something somewhere between v4 and v5 or I can investigate further more.I also tried to use a
pgtype.Int8
same result.func (m *Map) PlanScan(oid uint32, formatCode int16, target any) ScanPlan
seems to have changed a lot between v4 and v5.Thanks for your time.
The text was updated successfully, but these errors were encountered: