Use pointer methods for all struct pgtypes
Now no need to no whether certain interfaces are implemented by struct or pointer to struct.
This commit is contained in:
@@ -10,9 +10,9 @@ import (
|
||||
|
||||
func TestByteaTranscode(t *testing.T) {
|
||||
testutil.TestSuccessfulTranscode(t, "bytea", []interface{}{
|
||||
pgtype.Bytea{Bytes: []byte{1, 2, 3}, Status: pgtype.Present},
|
||||
pgtype.Bytea{Bytes: []byte{}, Status: pgtype.Present},
|
||||
pgtype.Bytea{Bytes: nil, Status: pgtype.Null},
|
||||
&pgtype.Bytea{Bytes: []byte{1, 2, 3}, Status: pgtype.Present},
|
||||
&pgtype.Bytea{Bytes: []byte{}, Status: pgtype.Present},
|
||||
&pgtype.Bytea{Bytes: nil, Status: pgtype.Null},
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user