2
0

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:
Jack Christensen
2017-04-14 13:08:05 -05:00
parent f418255c24
commit a8c350c77d
67 changed files with 302 additions and 302 deletions
+4 -4
View File
@@ -10,25 +10,25 @@ import (
func TestNumrangeTranscode(t *testing.T) {
testutil.TestSuccessfulTranscode(t, "numrange", []interface{}{
pgtype.Numrange{
&pgtype.Numrange{
LowerType: pgtype.Empty,
UpperType: pgtype.Empty,
Status: pgtype.Present,
},
pgtype.Numrange{
&pgtype.Numrange{
Lower: pgtype.Numeric{Int: big.NewInt(-543), Exp: 3, Status: pgtype.Present},
Upper: pgtype.Numeric{Int: big.NewInt(342), Exp: 1, Status: pgtype.Present},
LowerType: pgtype.Inclusive,
UpperType: pgtype.Exclusive,
Status: pgtype.Present,
},
pgtype.Numrange{
&pgtype.Numrange{
Lower: pgtype.Numeric{Int: big.NewInt(-42), Exp: 1, Status: pgtype.Present},
Upper: pgtype.Numeric{Int: big.NewInt(-5), Exp: 0, Status: pgtype.Present},
LowerType: pgtype.Inclusive,
UpperType: pgtype.Exclusive,
Status: pgtype.Present,
},
pgtype.Numrange{Status: pgtype.Null},
&pgtype.Numrange{Status: pgtype.Null},
})
}