Merge pull request #928 from jhaynie/patch-1

Fix example to close the rows object
This commit is contained in:
astaxie
2018-01-01 18:42:27 +08:00
committed by GitHub

View File

@@ -80,6 +80,8 @@ The following example shows how to operate on a database based on the `database/
fmt.Println(department)
fmt.Println(created)
}
rows.Close()
// delete
stmt, err = db.Prepare("delete from userinfo where uid=?")