Fix example to close the rows object
This commit is contained in:
@@ -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=?")
|
||||
|
||||
Reference in New Issue
Block a user