Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
database/sql: Document that prepared statements must be Close()' #8952
Before filing a bug, please check whether it has been fixed since the latest release. Search the issue tracker and check that you're running the latest version of Go: Run "go version" and compare against http://golang.org/doc/devel/release.html If a newer version of Go exists, install it and retry what you did to reproduce the problem. Thanks. What does 'go version' print? What steps reproduce the problem? If possible, include a link to a program on play.golang.org. 1. 2. 3. What happened? What should have happened instead? Please provide any additional information below.
Sorry, not sure what happened. Here's the text that should be part of the bug: go version 1.3.3 DB.Prepare (http://godoc.org/database/sql#DB.Prepare) and Tx.Stmt (http://godoc.org/database/sql#Tx.Stmt) both return *Stmt that should be closed after user, but this is not documented. The only reference I could find was a brief mention in https://code.google.com/p/go-wiki/wiki/SQLInterface. None of the examples in either the package docs or the wiki indicate that it should be closed.