jackc/pgx · error
%d is less than minimum value for int8
Error message
%d is less than minimum value for int8
What it means
Error "%d is less than minimum value for int8" thrown in jackc/pgx.
Source
Thrown at pgtype/builtin_wrappers.go:24
"math"
"math/big"
"net"
"net/netip"
"reflect"
"time"
)
type int8Wrapper int8
func (w int8Wrapper) SkipUnderlyingTypePlan() {}
func (w *int8Wrapper) ScanInt64(v Int8) error {
if !v.Valid {
return fmt.Errorf("cannot scan NULL into *int8")
}
if v.Int64 < math.MinInt8 {
return fmt.Errorf("%d is less than minimum value for int8", v.Int64)
}
if v.Int64 > math.MaxInt8 {
return fmt.Errorf("%d is greater than maximum value for int8", v.Int64)
}
*w = int8Wrapper(v.Int64)
return nil
}
func (w int8Wrapper) Int64Value() (Int8, error) {
return Int8{Int64: int64(w), Valid: true}, nil
}
type int16Wrapper int16
func (w int16Wrapper) SkipUnderlyingTypePlan() {}
func (w *int16Wrapper) ScanInt64(v Int8) error {View on GitHub (pinned to ec1a0befd2)
When it happens
Trigger: Thrown at pgtype/builtin_wrappers.go:24 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/8f0d25a35ff36d0d.json.
Report an issue: GitHub.