sqlclosecheck
sqlclosecheck copied to clipboard
support check conn.QueryRow() without Scan()
I meet the case that someone write
if err := conn.QueryRow(query, args...).Error(); err != nil {
}
the conn leaks. In fact, he wants to Exec(query, args...). I hope the cases can be detected