sqlclosecheck icon indicating copy to clipboard operation
sqlclosecheck copied to clipboard

support check conn.QueryRow() without Scan()

Open SennoYuki opened this issue 1 year ago • 1 comments

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

SennoYuki avatar Jun 16 '23 08:06 SennoYuki