{"id":"faff187536fe0b9c","repo":"jackc/pgx","slug":"d-is-less-than-minimum-value-for-uint32-faff18","errorCode":null,"errorMessage":"%d is less than minimum value for uint32","messagePattern":"(.+?) is less than minimum value for uint32","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pgtype/uint32.go","lineNumber":173,"sourceCode":"\t}\n\n\treturn pgio.AppendUint32(buf, v.Uint32), nil\n}\n\ntype encodePlanUint32CodecBinaryInt64Valuer struct{}\n\nfunc (encodePlanUint32CodecBinaryInt64Valuer) Encode(value any, buf []byte) (newBuf []byte, err error) {\n\tv, err := value.(Int64Valuer).Int64Value()\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tif !v.Valid {\n\t\treturn nil, nil\n\t}\n\n\tif v.Int64 < 0 {\n\t\treturn nil, fmt.Errorf(\"%d is less than minimum value for uint32\", v.Int64)\n\t}\n\tif v.Int64 > math.MaxUint32 {\n\t\treturn nil, fmt.Errorf(\"%d is greater than maximum value for uint32\", v.Int64)\n\t}\n\n\treturn pgio.AppendUint32(buf, uint32(v.Int64)), nil\n}\n\ntype encodePlanUint32CodecTextUint32 struct{}\n\nfunc (encodePlanUint32CodecTextUint32) Encode(value any, buf []byte) (newBuf []byte, err error) {\n\tv := value.(uint32)\n\treturn append(buf, strconv.FormatUint(uint64(v), 10)...), nil\n}\n\ntype encodePlanUint32CodecTextUint32Valuer struct{}\n\nfunc (encodePlanUint32CodecTextUint32Valuer) Encode(value any, buf []byte) (newBuf []byte, err error) {","sourceCodeStart":155,"sourceCodeEnd":191,"githubUrl":"https://github.com/jackc/pgx/blob/ec1a0befd22592cffffdeeb0a50311b506372f4c/pgtype/uint32.go#L155-L191","documentation":"Error \"%d is less than minimum value for uint32\" thrown in jackc/pgx.","triggerScenarios":"Thrown at pgtype/uint32.go:173 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"analyzedSha":"ec1a0befd22592cffffdeeb0a50311b506372f4c","analyzedAt":"2026-08-04T22:52:11.263Z","schemaVersion":2}