2
0

Expand pgtype.Value interface

- Include and rename ConvertFrom to Set
- Add Get
- Include AssignTo
This commit is contained in:
Jack Christensen
2017-03-11 19:53:02 -06:00
parent 7985ca5f87
commit 9b9361848d
72 changed files with 561 additions and 170 deletions
+2 -2
View File
@@ -68,7 +68,7 @@ func TestTimestampArrayTranscode(t *testing.T) {
})
}
func TestTimestampArrayConvertFrom(t *testing.T) {
func TestTimestampArraySet(t *testing.T) {
successfulTests := []struct {
source interface{}
result pgtype.TimestampArray
@@ -88,7 +88,7 @@ func TestTimestampArrayConvertFrom(t *testing.T) {
for i, tt := range successfulTests {
var r pgtype.TimestampArray
err := r.ConvertFrom(tt.source)
err := r.Set(tt.source)
if err != nil {
t.Errorf("%d: %v", i, err)
}