forked from mirror/gorm
commit
5b509264e1
|
@ -80,9 +80,7 @@ func queryCallback(scope *Scope) {
|
|||
|
||||
if err := rows.Err(); err != nil {
|
||||
scope.Err(err)
|
||||
}
|
||||
|
||||
if scope.db.RowsAffected == 0 && !isSlice {
|
||||
} else if scope.db.RowsAffected == 0 && !isSlice {
|
||||
scope.Err(ErrRecordNotFound)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue