mirror of
https://github.com/golang/go
synced 2024-11-17 01:04:50 -07:00
database/sql: save Close error into lasterr
This commit is contained in:
parent
59a1fb6d18
commit
9f1f883c45
@ -2987,10 +2987,7 @@ func (rs *Rows) Next() bool {
|
||||
doClose, ok = rs.nextLocked()
|
||||
})
|
||||
if doClose {
|
||||
err := rs.Close()
|
||||
if err != nil {
|
||||
rs.Close()
|
||||
}
|
||||
rs.Close()
|
||||
}
|
||||
return ok
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user