{"id":"5dc0e38ceb6574e9","repo":"jackc/pgx","slug":"found-end-instead-of-value","errorCode":null,"errorMessage":"found end instead of value","messagePattern":"found end instead of value","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pgtype/hstore.go","lineNumber":403,"sourceCode":"\t}\n\treturn builder.String(), nil\n}\n\n// consumePairSeparator consumes the Hstore pair separator \", \" or returns an error.\nfunc (p *hstoreParser) consumePairSeparator() error {\n\treturn p.consumeExpected2(',', ' ')\n}\n\n// consumeKVSeparator consumes the Hstore key/value separator \"=>\" or returns an error.\nfunc (p *hstoreParser) consumeKVSeparator() error {\n\treturn p.consumeExpected2('=', '>')\n}\n\n// consumeDoubleQuotedOrNull consumes the Hstore key/value separator \"=>\" or returns an error.\nfunc (p *hstoreParser) consumeDoubleQuotedOrNull() (Text, error) {\n\t// peek at the next byte\n\tif p.atEnd() {\n\t\treturn Text{}, errors.New(\"found end instead of value\")\n\t}\n\tnext := p.str[p.pos]\n\tif next == 'N' {\n\t\t// must be the exact string NULL: use consumeExpected2 twice\n\t\terr := p.consumeExpected2('N', 'U')\n\t\tif err != nil {\n\t\t\treturn Text{}, err\n\t\t}\n\t\terr = p.consumeExpected2('L', 'L')\n\t\tif err != nil {\n\t\t\treturn Text{}, err\n\t\t}\n\t\treturn Text{String: \"\", Valid: false}, nil\n\t} else if next != '\"' {\n\t\treturn Text{}, unexpectedByteErr(next, '\"')\n\t}\n\n\t// skip the double quote","sourceCodeStart":385,"sourceCodeEnd":421,"githubUrl":"https://github.com/jackc/pgx/blob/ec1a0befd22592cffffdeeb0a50311b506372f4c/pgtype/hstore.go#L385-L421","documentation":"Error \"found end instead of value\" thrown in jackc/pgx.","triggerScenarios":"Thrown at pgtype/hstore.go:403 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}