Describe the feature

Provide more friendly errors for those finisher api that need to modify the passed parameters.

Motivation

It will panic if we pass not updatable param to finisher api like Create/CreateInBatches/Save...

user := User{Name: "123"}
DB.Create(user)

when we pass not updatable param and not found to finisher api like Scan/Find/... It will execute sql but no error if rows not found and panic if found.

var user User
DB.Model(User{}).Where("id=?", "1").Scan(user)

So I think we should check param and throw more friendly errors at first.

Related Issues

Comment From: github-actions[bot]

This issue has been automatically marked as stale because it has been open 360 days with no activity. Remove stale label or comment or this will be closed in 180 days

Comment From: saeidee

@a631807682 the PRs are closed, shall we close this issue?

Comment From: a631807682

@a631807682 the PRs are closed, shall we close this issue?

Can be closed