fix panic when `Iterate()` fails

not to call `rows.Err()`
This commit is contained in:
daisuzu 2021-09-06 13:13:04 +08:00
parent 045abb07df
commit 049d42641f
1 changed files with 1 additions and 1 deletions

View File

@ -140,5 +140,5 @@ func (rows *Rows) Close() error {
return rows.rows.Close() return rows.rows.Close()
} }
return rows.Err() return nil
} }