{"id":"6b7fbb7bb25bfa14","repo":"jackc/pgx","slug":"d-is-less-than-minimum-value-for-uint64-6b7fbb","errorCode":null,"errorMessage":"%d is less than minimum value for uint64","messagePattern":"(.+?) is less than minimum value for uint64","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pgtype/uint64.go","lineNumber":150,"sourceCode":"\t}\n\n\treturn pgio.AppendUint64(buf, v.Uint64), nil\n}\n\ntype encodePlanUint64CodecBinaryInt64Valuer struct{}\n\nfunc (encodePlanUint64CodecBinaryInt64Valuer) 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 uint64\", v.Int64)\n\t}\n\n\treturn pgio.AppendUint64(buf, uint64(v.Int64)), nil\n}\n\ntype encodePlanUint64CodecTextUint64 struct{}\n\nfunc (encodePlanUint64CodecTextUint64) Encode(value any, buf []byte) (newBuf []byte, err error) {\n\tv := value.(uint64)\n\treturn append(buf, strconv.FormatUint(v, 10)...), nil\n}\n\ntype encodePlanUint64CodecTextUint64Valuer struct{}\n\nfunc (encodePlanUint64CodecTextUint64Valuer) Encode(value any, buf []byte) (newBuf []byte, err error) {\n\tv, err := value.(Uint64Valuer).Uint64Value()\n\tif err != nil {\n\t\treturn nil, err","sourceCodeStart":132,"sourceCodeEnd":168,"githubUrl":"https://github.com/jackc/pgx/blob/ec1a0befd22592cffffdeeb0a50311b506372f4c/pgtype/uint64.go#L132-L168","documentation":"Error \"%d is less than minimum value for uint64\" thrown in jackc/pgx.","triggerScenarios":"Thrown at pgtype/uint64.go:150 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}