-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
V2.7 cannot use ORM JSON storage #3560
Comments
我在我的机器上试了pgsql没问题,另这个和mysql没有关系,只要数据库支持json类型的字段就可以 |
I tried pgsql on my machine and there was no problem. This has nothing to do with mysql, as long as the database supports json type fields. |
对不起,我更正一下,如果插入的字段为元组类型并且len为0 ,则会提示错误: dao.Message.Ctx(ctx).Data(model.MessageItem{
Message:&entity.Message{
...
},
Embeds: make([]MessageEmbed, 0),
}).Insert()
目前是用FieldsEx解决空值无法被映射为json的问题,但感觉还是老版本自动映射更加好用。 |
Go version
1.21
GoFrame version
2.7
Can this bug be reproduced with the latest release?
Option Yes
What did you do?
评论区已经有人反馈了,所有的json都字段都被解析成了空字符插入到数据库。当我把gf版本降到2.64执行gf gen dao后一切就正常了。
What did you see happen?
help
What did you expect to see?
help
The text was updated successfully, but these errors were encountered: