Add pgtype.ByteaArray
Also fix up quoting array elements for text arrays.
This commit is contained in:
+4
-4
@@ -25,12 +25,12 @@ func TestTextArrayTranscode(t *testing.T) {
|
||||
&pgtype.TextArray{Status: pgtype.Null},
|
||||
&pgtype.TextArray{
|
||||
Elements: []pgtype.Text{
|
||||
pgtype.Text{String: "bar", Status: pgtype.Present},
|
||||
pgtype.Text{String: "baz", Status: pgtype.Present},
|
||||
pgtype.Text{String: "quz", Status: pgtype.Present},
|
||||
pgtype.Text{String: "bar ", Status: pgtype.Present},
|
||||
pgtype.Text{String: "NuLL", Status: pgtype.Present},
|
||||
pgtype.Text{String: `wow"quz\`, Status: pgtype.Present},
|
||||
pgtype.Text{String: "", Status: pgtype.Present},
|
||||
pgtype.Text{Status: pgtype.Null},
|
||||
pgtype.Text{String: "foo", Status: pgtype.Present},
|
||||
pgtype.Text{String: "null", Status: pgtype.Present},
|
||||
},
|
||||
Dimensions: []pgtype.ArrayDimension{{Length: 3, LowerBound: 1}, {Length: 2, LowerBound: 1}},
|
||||
Status: pgtype.Present,
|
||||
|
||||
Reference in New Issue
Block a user