{"record":{"id":"128c796f4fe543a5","repo":"jackc/pgx","slug":"uint32-w","errorCode":null,"errorMessage":"uint32: %w","messagePattern":"uint32: %w","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pgtype/uint32.go","lineNumber":284,"sourceCode":"\n\tvar n uint32\n\terr := codecScan(c, m, oid, format, src, &n)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn n, nil\n}\n\ntype scanPlanBinaryUint32ToUint32 struct{}\n\nfunc (scanPlanBinaryUint32ToUint32) Scan(src []byte, dst any) error {\n\tif src == nil {\n\t\treturn fmt.Errorf(\"cannot scan NULL into %T\", dst)\n\t}\n\n\traw, err := pgio.Uint32Exact(src)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"uint32: %w\", err)\n\t}\n\n\tp := (dst).(*uint32)\n\t*p = raw\n\n\treturn nil\n}\n\ntype scanPlanBinaryUint32ToUint32Scanner struct{}\n\nfunc (scanPlanBinaryUint32ToUint32Scanner) Scan(src []byte, dst any) error {\n\ts, ok := (dst).(Uint32Scanner)\n\tif !ok {\n\t\treturn ErrScanTargetTypeChanged\n\t}\n\n\tif src == nil {\n\t\treturn s.ScanUint32(Uint32{})","sourceCodeStart":266,"sourceCodeEnd":302,"githubUrl":"https://github.com/jackc/pgx/blob/ec1a0befd22592cffffdeeb0a50311b506372f4c/pgtype/uint32.go#L266-L302","documentation":"scanPlanBinaryUint32ToUint32 wraps pgio.Uint32Exact: the binary uint32 payload was not exactly 4 bytes, so it cannot be decoded. The wrapped error details the size mismatch.","triggerScenarios":"Thrown at pgtype/uint32.go:284 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fail the scan; the binary payload is malformed","Check for truncation/corruption or a custom encoder emitting the wrong width","Verify the value's OID really is uint32 (custom domain)"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"ec1a0befd22592cffffdeeb0a50311b506372f4c","analyzedAt":"2026-08-04T22:52:11.263Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}