database/sql: improve documentation for closing prepared statement on Tx #40280
Labels
Documentation
Issues describing a change to documentation.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
The https://golang.org/pkg/database/sql/#Tx documentation says:
But in the example of https://golang.org/pkg/database/sql/#Tx.Prepare there's a comment ("Prepared statements take up server resources and should be closed after use.") that can cause some doubts about how to handle it
The text was updated successfully, but these errors were encountered: