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

V2.7 cannot use ORM JSON storage #3560

Open
Gallery2000 opened this issue May 5, 2024 · 2 comments
Open

V2.7 cannot use ORM JSON storage #3560

Gallery2000 opened this issue May 5, 2024 · 2 comments
Labels
bug It is confirmed a bug, but don't worry, we'll handle it.

Comments

@Gallery2000
Copy link

Gallery2000 commented May 5, 2024

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后一切就正常了。
image
image

What did you see happen?

help

What did you expect to see?

help

@Gallery2000 Gallery2000 added the bug It is confirmed a bug, but don't worry, we'll handle it. label May 5, 2024
@Issues-translate-bot Issues-translate-bot changed the title V2.7无法使用ORM JSON存储 V2.7 cannot use ORM JSON storage May 5, 2024
@wln32
Copy link
Member

wln32 commented May 5, 2024

我在我的机器上试了pgsql没问题,另这个和mysql没有关系,只要数据库支持json类型的字段就可以

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug It is confirmed a bug, but don't worry, we'll handle it.
Projects
None yet
Development

No branches or pull requests

3 participants