diff --git a/driver_test.go b/driver_test.go index 1741a13ef..d24488a82 100644 --- a/driver_test.go +++ b/driver_test.go @@ -2945,7 +2945,10 @@ func TestRowsColumnTypes(t *testing.T) { continue } } - + // Avoid panic caused by nil scantype. + if t.Failed() { + return + } values := make([]interface{}, len(tt)) for i := range values { values[i] = reflect.New(types[i]).Interface()