Skip to content
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 v2中timestamp生成的 type不正确导致 update失败 #203

Open
jau1jz opened this issue Mar 2, 2022 · 1 comment
Open

Gorm v2中timestamp生成的 type不正确导致 update失败 #203

jau1jz opened this issue Mar 2, 2022 · 1 comment

Comments

@jau1jz
Copy link

jau1jz commented Mar 2, 2022

1646225611(1)
生成的类型是timestamp(3),但是gorm v2中判断的类型是 time 造成没法出发callback
微信截图_20220302205437
image

@xxjwxc
Copy link
Owner

xxjwxc commented Mar 2, 2022

可以在config文件里面自定义映射类型

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants