jackc/pgx · error
%d is less than minimum value for uint64
Error message
%d is less than minimum value for uint64
What it means
Error "%d is less than minimum value for uint64" thrown in jackc/pgx.
Source
Thrown at pgtype/builtin_wrappers.go:211
return nil
}
func (w uint32Wrapper) Int64Value() (Int8, error) {
return Int8{Int64: int64(w), Valid: true}, nil
}
type uint64Wrapper uint64
func (w uint64Wrapper) SkipUnderlyingTypePlan() {}
func (w *uint64Wrapper) ScanInt64(v Int8) error {
if !v.Valid {
return fmt.Errorf("cannot scan NULL into *uint64")
}
if v.Int64 < 0 {
return fmt.Errorf("%d is less than minimum value for uint64", v.Int64)
}
*w = uint64Wrapper(v.Int64)
return nil
}
func (w uint64Wrapper) Int64Value() (Int8, error) {
if uint64(w) > uint64(math.MaxInt64) {
return Int8{}, fmt.Errorf("%d is greater than maximum value for int64", w)
}
return Int8{Int64: int64(w), Valid: true}, nil
}
func (w *uint64Wrapper) ScanNumeric(v Numeric) error {
if !v.Valid {
return fmt.Errorf("cannot scan NULL into *uint64")View on GitHub (pinned to ec1a0befd2)
When it happens
Trigger: Thrown at pgtype/builtin_wrappers.go:211 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/e1184db1609c6319.json.
Report an issue: GitHub.