mirror of https://github.com/go-gorm/gorm.git
Co-authored-by: zhuangg <zhuangg@mingyuanyun.com>
This commit is contained in:
parent
c3d7d08b9a
commit
f5837deef3
|
@ -533,6 +533,7 @@ func (db *DB) Scan(dest interface{}) (tx *DB) {
|
|||
tx.ScanRows(rows, dest)
|
||||
} else {
|
||||
tx.RowsAffected = 0
|
||||
tx.AddError(rows.Err())
|
||||
}
|
||||
tx.AddError(rows.Close())
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue