mirror of https://github.com/jackc/pgx.git
Actually takes the first arg
parent
c9292c44e6
commit
a80ef6d35f
|
@ -3001,8 +3001,9 @@ func decodeTextArray(vr *ValueReader) []string {
|
||||||
|
|
||||||
// XXX: encodeAclItemSlice; using text encoding, not binary
|
// XXX: encodeAclItemSlice; using text encoding, not binary
|
||||||
func encodeAclItemSlice(w *WriteBuf, oid Oid, value []AclItem) error {
|
func encodeAclItemSlice(w *WriteBuf, oid Oid, value []AclItem) error {
|
||||||
w.WriteInt32(int32(len("{=r/postgres}")))
|
str := "{" + value[0] + "}"
|
||||||
w.WriteBytes([]byte("{=r/postgres}"))
|
w.WriteInt32(int32(len(str)))
|
||||||
|
w.WriteBytes([]byte(str))
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -643,6 +643,7 @@ func TestNullX(t *testing.T) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// XXX
|
||||||
func TestAclArrayDecoding(t *testing.T) {
|
func TestAclArrayDecoding(t *testing.T) {
|
||||||
t.Parallel()
|
t.Parallel()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue