-
-
Notifications
You must be signed in to change notification settings - Fork 244
New issue
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
gorm update assignment time field error #182
Comments
What is the object after instantiation of |
是的,简单的更新 |
Fixed in v2.2.8 |
2.2.8版本还可以重现 UPDATE "biz_task" SET gmt_modified"=1695611775 WHERE id = 136; go version go1.20.7 darwin/amd64 gorm.io/driver/postgres v1.5.2 |
How |
这是目前定义的方式
经测试
改为 |
This is how it is currently defined
tested
Change the definition to |
在
2.2.5
之前更新,如果updatedAt
是carbon.DateTime
类型,时间会正确转换同样的语句,在
2.2.5
报错,因为updatedAt
转换为时间戳了The text was updated successfully, but these errors were encountered: