2
0

Add tests for pgtype.Int2Array

This commit is contained in:
Jack Christensen
2017-03-03 19:19:31 -06:00
parent 6a3b22cee8
commit 0e8dd862b1
4 changed files with 147 additions and 32 deletions
+3
View File
@@ -89,6 +89,9 @@ func (src *Int2Array) AssignTo(dst interface{}) error {
*v = nil
}
default:
if originalDst, ok := underlyingPtrSliceType(dst); ok {
return src.AssignTo(originalDst)
}
return fmt.Errorf("cannot put decode %v into %T", src, dst)
}