fix panic when `Iterate()` fails (#2040)

not to call `rows.Err()`

Reviewed-on: https://gitea.com/xorm/xorm/pulls/2040
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: daisuzu <daisuzu@noreply.gitea.io>
Co-committed-by: daisuzu <daisuzu@noreply.gitea.io>
This commit is contained in:
daisuzu 2021-09-07 09:23:16 +08:00 committed by Lunny Xiao
parent 045abb07df
commit 78309606d4
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.Err()
return nil
}