Fix encode ErrorResponse

fixes https://github.com/jackc/pgx/issues/1371
This commit is contained in:
Jack Christensen 2022-11-11 18:20:16 -06:00
parent a968ce3437
commit a86acf61e0

View File

@ -215,7 +215,6 @@ func (src *ErrorResponse) marshalBinary(typeByte byte) []byte {
for k, v := range src.UnknownFields {
buf.WriteByte(k)
buf.WriteByte(0)
buf.WriteString(v)
buf.WriteByte(0)
}