sqlclosecheck icon indicating copy to clipboard operation
sqlclosecheck copied to clipboard

Statements prepared in transaction do not need to be closed

Open bunyk opened this issue 2 years ago • 1 comments

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.

bunyk avatar Sep 20 '21 12:09 bunyk