validations icon indicating copy to clipboard operation
validations copied to clipboard

Update queries return validation errors

Open figassis opened this issue 5 years ago • 0 comments

If a user has required fields, the statement:

db.Model(&User{}).Where("status = ?", "active").Update("status", "inactive")

returns validation errors because the update object is empty except for the status field.

figassis avatar Mar 31 '20 18:03 figassis