1
1
mirror of https://github.com/go-gitea/gitea synced 2025-08-24 18:38:28 +00:00

Upgrade xorm to v1.2.4 (#17059)

This commit is contained in:
Lunny Xiao
2021-09-15 23:27:46 +08:00
committed by GitHub
parent 6a025d8b4a
commit 1f8df5dd89
13 changed files with 150 additions and 162 deletions

10
vendor/xorm.io/xorm/rows.go generated vendored
View File

@@ -84,12 +84,18 @@ func newRows(session *Session, bean interface{}) (*Rows, error) {
// Next move cursor to next record, return false if end has reached
func (rows *Rows) Next() bool {
return rows.rows.Next()
if rows.rows != nil {
return rows.rows.Next()
}
return false
}
// Err returns the error, if any, that was encountered during iteration. Err may be called after an explicit or implicit Close.
func (rows *Rows) Err() error {
return rows.rows.Err()
if rows.rows != nil {
return rows.rows.Err()
}
return nil
}
// Scan row record to bean properties