We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://github.com/go-gorm/gorm.io/blob/master/pages/docs/update.md#update-selected-fields
The Generated SQL omits the updated_at field. For example:
updated_at
db.Model(&user).Select("name").Updates(map[string]interface{}{"name": "hello", "age": 18, "active": false})
should generate
UPDATE `users` SET `name`="hello",`updated_at`="2024-03-13 16:12:50.555" WHERE `id` = 111
instead of
UPDATE users SET name='hello' WHERE id=111;
The text was updated successfully, but these errors were encountered:
jinzhu
No branches or pull requests
Document Link
https://github.com/go-gorm/gorm.io/blob/master/pages/docs/update.md#update-selected-fields
Your Question
The Generated SQL omits the
updated_at
field. For example:should generate
instead of
Expected answer
The text was updated successfully, but these errors were encountered: