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生成的sql能查询到数据,但是返回的结构体里面没有数据 #6995
Comments
The issue has been automatically marked as stale as it missing playground pull request link, which is important to help others understand your issue effectively and make sure the issue hasn't been fixed on latest master, checkout https://github.com/go-gorm/playground for details. it will be closed in 30 days if no further activity occurs. if you are asking question, please use the |
发一下model 结构体,特别是这个自定义类型,以及这个字段的sql定义 @wenjian022 |
The issue has been automatically marked as stale as it missing playground pull request link, which is important to help others understand your issue effectively and make sure the issue hasn't been fixed on latest master, checkout https://github.com/go-gorm/playground for details. it will be closed in 30 days if no further activity occurs. if you are asking question, please use the |
现在我换了个方式,dll中是 text
之前的,dll中好像是blob, 之后我把他改成了text也不行
|
The issue has been automatically marked as stale as it missing playground pull request link, which is important to help others understand your issue effectively and make sure the issue hasn't been fixed on latest master, checkout https://github.com/go-gorm/playground for details. it will be closed in 30 days if no further activity occurs. if you are asking question, please use the |
查询代码
gorm 生成的sql
获取到的结果
通过数据库查获取的结果
prisons 字段是自定义类型,我不知道是不是自定义字段导致查不出来的 ,把prisons 条件删了就正常查
数据源是sqlite
The text was updated successfully, but these errors were encountered: