{"id":"3138e619e9c16365","repo":"jackc/pgx","slug":"float4-w","errorCode":null,"errorMessage":"float4: %w","messagePattern":"float4: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pgtype/float4.go","lineNumber":212,"sourceCode":"\t\t\treturn scanPlanTextAnyToFloat64Scanner{}\n\t\tcase Int64Scanner:\n\t\t\treturn scanPlanTextAnyToInt64Scanner{}\n\t\t}\n\t}\n\n\treturn nil\n}\n\ntype scanPlanBinaryFloat4ToFloat32 struct{}\n\nfunc (scanPlanBinaryFloat4ToFloat32) 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(\"float4: %w\", err)\n\t}\n\n\tn := int32(raw)\n\tf := (dst).(*float32)\n\t*f = math.Float32frombits(uint32(n))\n\n\treturn nil\n}\n\ntype scanPlanBinaryFloat4ToFloat64Scanner struct{}\n\nfunc (scanPlanBinaryFloat4ToFloat64Scanner) Scan(src []byte, dst any) error {\n\ts := (dst).(Float64Scanner)\n\n\tif src == nil {\n\t\treturn s.ScanFloat64(Float8{})\n\t}\n","sourceCodeStart":194,"sourceCodeEnd":230,"githubUrl":"https://github.com/jackc/pgx/blob/ec1a0befd22592cffffdeeb0a50311b506372f4c/pgtype/float4.go#L194-L230","documentation":"Error \"float4: %w\" thrown in jackc/pgx.","triggerScenarios":"Thrown at pgtype/float4.go:212 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}