2
0

Add shopspring.Numeric

This adds PostgreSQL numeric mapping to and from
github.com/shopspring/decimal.

Makes pgtype.NullAssignTo public as external types need this functionality.

Begin extraction of pgtype testing functionality so it can easily be used by
external types.
This commit is contained in:
Jack Christensen
2017-04-14 12:18:49 -05:00
parent 92474ef292
commit b49035fdc1
36 changed files with 932 additions and 33 deletions
+1 -1
View File
@@ -79,7 +79,7 @@ func (src *Float4Array) AssignTo(dst interface{}) error {
}
}
case Null:
return nullAssignTo(dst)
return NullAssignTo(dst)
}
return fmt.Errorf("cannot decode %v into %T", src, dst)