Merge pull request #3 from Vivino/errrnf_fix

ErrRecordNotFound fix
This commit is contained in:
Raul-Mircea Crivineanu 2020-01-22 14:40:34 +01:00 committed by GitHub
commit 6e9a6f72dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -89,7 +89,7 @@ func queryCallback(scope *Scope) {
if err := rows.Err(); err != nil { if err := rows.Err(); err != nil {
scope.Err(err) scope.Err(err)
} else if scope.db.RowsAffected == 0 && !isSlice { } else if scope.db.RowsAffected == 0 {
scope.Err(ErrRecordNotFound) scope.Err(ErrRecordNotFound)
} }
} }