| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2014-03-25 | database/sql: add "defer rows.Close()" to the example code. | Nigel Tao | |
| Strictly speaking, it's not necessary in example_test.go, as the Rows.Close docs say that "If Next returns false, the Rows are closed automatically". However, if the for loop breaks or returns early, it's not obvious that you'll leak unless you explicitly call Rows.Close. LGTM=bradfitz R=bradfitz CC=golang-codereviews, rsc https://golang.org/cl/79330043 | |||
| 2013-01-11 | database/sql: document args, add a couple examples | Brad Fitzpatrick | |
| Fixes #3460 R=golang-dev, alex.brainman CC=golang-dev https://golang.org/cl/7096046 | |||
