Skip to content

support check conn.QueryRow() without Scan() #22

@SennoYuki

Description

@SennoYuki

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions