jackc/pgx · error
%d is greater than maximum value for Uint32
Error message
%d is greater than maximum value for Uint32
What it means
Error "%d is greater than maximum value for Uint32" thrown in jackc/pgx.
Source
Thrown at pgtype/uint32.go:64
switch src := src.(type) {
case int64:
n = src
case string:
un, err := strconv.ParseUint(src, 10, 32)
if err != nil {
return err
}
n = int64(un)
default:
return fmt.Errorf("cannot scan %T", src)
}
if n < 0 {
return fmt.Errorf("%d is less than the minimum value for Uint32", n)
}
if n > math.MaxUint32 {
return fmt.Errorf("%d is greater than maximum value for Uint32", n)
}
*dst = Uint32{Uint32: uint32(n), Valid: true}
return nil
}
// Value implements the [database/sql/driver.Valuer] interface.
func (src Uint32) Value() (driver.Value, error) {
if !src.Valid {
return nil, nil
}
return int64(src.Uint32), nil
}
// MarshalJSON implements the [encoding/json.Marshaler] interface.
func (src Uint32) MarshalJSON() ([]byte, error) {
if !src.Valid {View on GitHub (pinned to ec1a0befd2)
When it happens
Trigger: Thrown at pgtype/uint32.go:64 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/89310ed87da93bdd.json.
Report an issue: GitHub.