2
0

Handles aclitem lists of 1+

This commit is contained in:
Manni Wood
2016-11-12 12:28:31 -05:00
parent d9ab219753
commit 104c01df21
2 changed files with 21 additions and 3 deletions
+4
View File
@@ -665,6 +665,10 @@ func TestAclArrayDecoding(t *testing.T) {
[]pgx.AclItem{"=r/postgres"},
&[]pgx.AclItem{},
},
{
[]pgx.AclItem{"=r/postgres", "postgres=arwdDxt/postgres"},
&[]pgx.AclItem{},
},
}
for i, tt := range tests {
err := conn.QueryRow(sql, tt.query).Scan(tt.scan)