Fix example to close the rows object

This commit is contained in:
Jeff Haynie
2017-11-30 07:51:23 -08:00
committed by GitHub
parent 66b57004a4
commit 7e58b251dd

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=?")