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:
@@ -12,8 +12,8 @@ import (
|
||||
|
||||
func TestMacaddrTranscode(t *testing.T) {
|
||||
testutil.TestSuccessfulTranscode(t, "macaddr", []interface{}{
|
||||
pgtype.Macaddr{Addr: mustParseMacaddr(t, "01:23:45:67:89:ab"), Status: pgtype.Present},
|
||||
pgtype.Macaddr{Status: pgtype.Null},
|
||||
&pgtype.Macaddr{Addr: mustParseMacaddr(t, "01:23:45:67:89:ab"), Status: pgtype.Present},
|
||||
&pgtype.Macaddr{Status: pgtype.Null},
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user