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

Statements prepared in transaction do not need to be closed #14

Open
bunyk opened this issue Sep 20, 2021 · 1 comment
Open

Statements prepared in transaction do not need to be closed #14

bunyk opened this issue Sep 20, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@bunyk
Copy link

bunyk commented Sep 20, 2021

Because, quoting documentation, "The statements prepared for a transaction by calling the transaction's Prepare or Stmt methods are closed by the call to Commit or Rollback.". https://pkg.go.dev/database/sql#Tx

Linter should avoid printing warnings about this.

@ryanrolds
Copy link
Owner

I'm sorry for not getting back to you sooner. Please provide a test case (example), and I will look into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants