{"record":{"id":"5f88ae320caa4c3b","repo":"jackc/pgx","slug":"float8-w","errorCode":null,"errorMessage":"float8: %w","messagePattern":"float8: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pgtype/float8.go","lineNumber":250,"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 scanPlanBinaryFloat8ToFloat64 struct{}\n\nfunc (scanPlanBinaryFloat8ToFloat64) 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.Uint64Exact(src)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"float8: %w\", err)\n\t}\n\n\tn := int64(raw)\n\tf := (dst).(*float64)\n\t*f = math.Float64frombits(uint64(n))\n\n\treturn nil\n}\n\ntype scanPlanBinaryFloat8ToFloat64Scanner struct{}\n\nfunc (scanPlanBinaryFloat8ToFloat64Scanner) 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":232,"sourceCodeEnd":268,"githubUrl":"https://github.com/jackc/pgx/blob/ec1a0befd22592cffffdeeb0a50311b506372f4c/pgtype/float8.go#L232-L268","documentation":"Wrapping error from the binary float8 scan plan: the payload was not exactly 8 bytes, so pgio.Uint64Exact failed. A float8 on the wire is a single uint64 bit pattern; any other length means corrupted data.","triggerScenarios":"Thrown at pgtype/float8.go:250 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Treat as protocol/data corruption — verify the column type and connection integrity","Check pgx/server version compatibility"],"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"}