Open mr-tron opened 1 month ago
There is a workarround:
type Int64s []Int64
func (ids *Int64s) Scan(src interface{}) error {
var dest pgtype.Int8Array
err := dest.Scan(src)
*ids = make(Int64s, len(dest.Elements))
for i := range dest.Elements {
(*ids)[i] = Int64(dest.Elements[i].Int)
}
return err
}
but I don't sure what library should panic in any cases
It works on v5.
Describe the bug Library panics on scanning to []CustomType
To Reproduce
Expected behavior Printing
1, 2, 3
Actual behavior
Version