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 TestTimestamptzArrayTranscode(t *testing.T) {
})
}
func TestTimestamptzArrayConvertFrom(t *testing.T) {
func TestTimestamptzArraySet(t *testing.T) {
successfulTests := []struct {
source interface{}
result pgtype.TimestamptzArray
@@ -88,7 +88,7 @@ func TestTimestamptzArrayConvertFrom(t *testing.T) {
for i, tt := range successfulTests {
var r pgtype.TimestamptzArray
err := r.ConvertFrom(tt.source)
err := r.Set(tt.source)
if err != nil {
t.Errorf("%d: %v", i, err)
}