From a80ef6d35fbe82480d58b1278b8fe55af5bd12e0 Mon Sep 17 00:00:00 2001 From: Manni Wood Date: Sat, 12 Nov 2016 11:46:07 -0500 Subject: [PATCH] Actually takes the first arg --- values.go | 5 +++-- values_test.go | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/values.go b/values.go index 2f64f2d5..0723189c 100644 --- a/values.go +++ b/values.go @@ -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 } diff --git a/values_test.go b/values_test.go index c2a89d79..92ec01a6 100644 --- a/values_test.go +++ b/values_test.go @@ -643,6 +643,7 @@ func TestNullX(t *testing.T) { } } +// XXX func TestAclArrayDecoding(t *testing.T) { t.Parallel()