Skip to content

Commit 8f0acc3

Browse files
authored
Merge pull request astaxie#928 from jhaynie/patch-1
Fix example to close the rows object
2 parents 6b1cbc9 + 7e58b25 commit 8f0acc3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

en/05.2.md

+2
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ The following example shows how to operate on a database based on the `database/
8080
fmt.Println(department)
8181
fmt.Println(created)
8282
}
83+
84+
rows.Close()
8385

8486
// delete
8587
stmt, err = db.Prepare("delete from userinfo where uid=?")

0 commit comments

Comments
 (0)