2
0

Back out of some over optimization

This commit is contained in:
Jack Christensen
2019-01-02 18:16:08 -06:00
parent 7bd9b776cd
commit a24d764440
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -14,7 +14,7 @@ const (
)
type FieldDescription struct {
Name []byte
Name string
TableOID uint32
TableAttributeNumber uint16
DataTypeOID uint32
@@ -45,7 +45,7 @@ func (dst *RowDescription) Decode(src []byte) error {
if err != nil {
return err
}
fd.Name = bName[:len(bName)-1]
fd.Name = string(bName[:len(bName)-1])
// Since buf.Next() doesn't return an error if we hit the end of the buffer
// check Len ahead of time