Actually takes the first arg

pull/210/head
Manni Wood 2016-11-12 11:46:07 -05:00
parent c9292c44e6
commit a80ef6d35f
2 changed files with 4 additions and 2 deletions

View File

@ -3001,8 +3001,9 @@ func decodeTextArray(vr *ValueReader) []string {
// XXX: encodeAclItemSlice; using text encoding, not binary
func encodeAclItemSlice(w *WriteBuf, oid Oid, value []AclItem) error {
w.WriteInt32(int32(len("{=r/postgres}")))
w.WriteBytes([]byte("{=r/postgres}"))
str := "{" + value[0] + "}"
w.WriteInt32(int32(len(str)))
w.WriteBytes([]byte(str))
return nil
}

View File

@ -643,6 +643,7 @@ func TestNullX(t *testing.T) {
}
}
// XXX
func TestAclArrayDecoding(t *testing.T) {
t.Parallel()