We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://github.com/gostaticanalysis/sqlrows/blob/master/passes/sqlrows/sqlrows.go#L94 If refs is nil, *refs become a panic.
*refs
The text was updated successfully, but these errors were encountered:
Running into this as well. It would be helpful if it would not panic and say why or where this happens.
Sorry, something went wrong.
With this you can reproduce the issue
func issue9() { var ctx context.Context var db *sql.DB rows, err := db.QueryContext(ctx, "SELECT * FROM users") if err != nil { log.Fatal(err) } defer rows.Close() func() { for rows.Next() { rows.Scan() } }() }
No branches or pull requests
https://github.com/gostaticanalysis/sqlrows/blob/master/passes/sqlrows/sqlrows.go#L94
If refs is nil,
*refs
become a panic.The text was updated successfully, but these errors were encountered: