Skip to content
New issue

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

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

Open
SennoYuki opened this issue Jun 16, 2023 · 1 comment
Open

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

SennoYuki opened this issue Jun 16, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@SennoYuki
Copy link

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

@ryanrolds
Copy link
Owner

I am considering this case.

@ryanrolds ryanrolds added the enhancement New feature or request label Aug 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants