jackc/pgx · error
%v is out of range for int64
Error message
%v is out of range for int64
What it means
Error "%v is out of range for int64" thrown in jackc/pgx.
Source
Thrown at pgtype/numeric.go:776
if src == nil {
return scanner.ScanInt64(Int8{})
}
var n Numeric
err := scanPlanBinaryNumericToNumericScanner{}.Scan(src, &n)
if err != nil {
return err
}
bigInt, err := n.toBigInt()
if err != nil {
return err
}
if !bigInt.IsInt64() {
return fmt.Errorf("%v is out of range for int64", bigInt)
}
return scanner.ScanInt64(Int8{Int64: bigInt.Int64(), Valid: true})
}
type scanPlanBinaryNumericToTextScanner struct{}
func (scanPlanBinaryNumericToTextScanner) Scan(src []byte, dst any) error {
scanner := (dst).(TextScanner)
if src == nil {
return scanner.ScanText(Text{})
}
var n Numeric
err := scanPlanBinaryNumericToNumericScanner{}.Scan(src, &n)
if err != nil {View on GitHub (pinned to ec1a0befd2)
When it happens
Trigger: Thrown at pgtype/numeric.go:776 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of jackc/pgx@ec1a0befd2 (2026-08-04).
Data as JSON: /data/errors/473a2a7373df22df.json.
Report an issue: GitHub.