{"id":"e08d1fe6ffd7f34f","repo":"jackc/pgx","slug":"d-is-greater-than-maximum-value-for-uint","errorCode":null,"errorMessage":"%d is greater than maximum value for uint","messagePattern":"(.+?) is greater than maximum value for uint","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pgtype/builtin_wrappers.go","lineNumber":264,"sourceCode":"func (w uint64Wrapper) NumericValue() (Numeric, error) {\n\treturn Numeric{Int: new(big.Int).SetUint64(uint64(w)), Valid: true}, nil\n}\n\ntype uintWrapper uint\n\nfunc (w uintWrapper) SkipUnderlyingTypePlan() {}\n\nfunc (w *uintWrapper) ScanInt64(v Int8) error {\n\tif !v.Valid {\n\t\treturn fmt.Errorf(\"cannot scan NULL into *uint64\")\n\t}\n\n\tif v.Int64 < 0 {\n\t\treturn fmt.Errorf(\"%d is less than minimum value for uint64\", v.Int64)\n\t}\n\n\tif uint64(v.Int64) > math.MaxUint {\n\t\treturn fmt.Errorf(\"%d is greater than maximum value for uint\", v.Int64)\n\t}\n\n\t*w = uintWrapper(v.Int64)\n\n\treturn nil\n}\n\nfunc (w uintWrapper) Int64Value() (Int8, error) {\n\tif uint64(w) > uint64(math.MaxInt64) {\n\t\treturn Int8{}, fmt.Errorf(\"%d is greater than maximum value for int64\", w)\n\t}\n\n\treturn Int8{Int64: int64(w), Valid: true}, nil\n}\n\nfunc (w *uintWrapper) ScanNumeric(v Numeric) error {\n\tif !v.Valid {\n\t\treturn fmt.Errorf(\"cannot scan NULL into *uint\")","sourceCodeStart":246,"sourceCodeEnd":282,"githubUrl":"https://github.com/jackc/pgx/blob/ec1a0befd22592cffffdeeb0a50311b506372f4c/pgtype/builtin_wrappers.go#L246-L282","documentation":"Error \"%d is greater than maximum value for uint\" thrown in jackc/pgx.","triggerScenarios":"Thrown at pgtype/builtin_wrappers.go:264 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}