mirror of https://github.com/go-gorm/gorm.git
Add error if exists after parse raw query results, fix #1398
This commit is contained in:
parent
5730b92954
commit
66d5b42ee9
|
@ -310,6 +310,10 @@ func (scope *Scope) handleManyToManyPreload(field *Field, conditions []interface
|
|||
}
|
||||
}
|
||||
|
||||
if err := rows.Err(); err != nil {
|
||||
scope.Err(err)
|
||||
}
|
||||
|
||||
// assign find results
|
||||
var (
|
||||
indirectScopeValue = scope.IndirectValue()
|
||||
|
|
Loading…
Reference in New Issue