2
0

Add tests to more pgtypes

Int4, Int8, Date, Timestamptz
This commit is contained in:
Jack Christensen
2017-03-03 18:23:26 -06:00
parent 9e5d81d8f5
commit 5b861d0a5f
5 changed files with 229 additions and 8 deletions
+1 -4
View File
@@ -50,10 +50,7 @@ func (src *Date) AssignTo(dst interface{}) error {
// if dst is a pointer to pointer, strip the pointer and try again
case reflect.Ptr:
if src.Status == Null {
if !el.IsNil() {
// if the destination pointer is not nil, nil it out
el.Set(reflect.Zero(el.Type()))
}
el.Set(reflect.Zero(el.Type()))
return nil
}
if el.IsNil() {