2
0

Parse array header to empty slices instead of nils

This commit is contained in:
Jack Christensen
2022-02-08 11:35:40 -06:00
parent bcc0af3f56
commit 1334d45d71
3 changed files with 9 additions and 20 deletions
+3 -3
View File
@@ -15,9 +15,9 @@ func TestParseUntypedTextArray(t *testing.T) {
{
source: "{}",
result: pgtype.UntypedTextArray{
Elements: nil,
Quoted: nil,
Dimensions: nil,
Elements: []string{},
Quoted: []bool{},
Dimensions: []pgtype.ArrayDimension{},
},
},
{