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 542eac08c6
commit 57494a6a0f
74 changed files with 568 additions and 185 deletions
+2 -2
View File
@@ -18,7 +18,7 @@ func TestFloat4Transcode(t *testing.T) {
})
}
func TestFloat4ConvertFrom(t *testing.T) {
func TestFloat4Set(t *testing.T) {
successfulTests := []struct {
source interface{}
result pgtype.Float4
@@ -43,7 +43,7 @@ func TestFloat4ConvertFrom(t *testing.T) {
for i, tt := range successfulTests {
var r pgtype.Float4
err := r.ConvertFrom(tt.source)
err := r.Set(tt.source)
if err != nil {
t.Errorf("%d: %v", i, err)
}