Actually takes the first arg
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -643,6 +643,7 @@ func TestNullX(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
// XXX
|
||||
func TestAclArrayDecoding(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user