mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-09-15 18:56:59 +00:00
Co-authored-by: zeripath <art27@cantab.net>
This commit is contained in:
parent
8de44d1995
commit
e21a35698c
13 changed files with 150 additions and 162 deletions
10
vendor/xorm.io/xorm/rows.go
generated
vendored
10
vendor/xorm.io/xorm/rows.go
generated
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue