diff options
Diffstat (limited to 'src/pkg/database/sql/example_test.go')
-rw-r--r-- | src/pkg/database/sql/example_test.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pkg/database/sql/example_test.go b/src/pkg/database/sql/example_test.go index d47eed50c..dcb74e069 100644 --- a/src/pkg/database/sql/example_test.go +++ b/src/pkg/database/sql/example_test.go @@ -18,6 +18,7 @@ func ExampleDB_Query() { if err != nil { log.Fatal(err) } + defer rows.Close() for rows.Next() { var name string if err := rows.Scan(&name); err != nil { |