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

当在数据库中申明default为NULL时,通过gen生成的代码好像不会加上这个tag #1144

Open
YakultGo opened this issue May 3, 2024 · 1 comment

Comments

@YakultGo
Copy link

YakultGo commented May 3, 2024

Your Question

默认为NULL的时候,为什么不会加上呢,当我申明一个类型为time.Time的时候,如果tag里面没有default:null,那么如果该字段不传值,会报错,得显式的写上default:null,但是好像生成的代码是不会带上default:null的

The document you expected this should be explained

Expected answer

@mck753
Copy link

mck753 commented Aug 6, 2024

同样的问题,坑死我了

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