Closed millim closed 1 year ago
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 Question
template, most likely your question already answered https://github.com/go-gorm/gorm/issues or described in the document https://gorm.io ✨ Search Before Asking ✨
版本
gorm.io/gorm v1.24.5 中出现问题 gorm.io/gorm v1.21.12 中正常
环境
使用postgresql 15版本
有如下JSONB类型
定义如下类型
问题描述
在新版本中,在 create 或 save 时,日志打印的sql语句正常,StringArray是带数组的内容,但是在数据库中保存的是带 " 号,并使用base64加密后的内容,同时由于 " 号的存在,数据无法正常读取,而在退回老版本后,此问题解决。
其中,日志打印的SQL语句直接复制到命令台输入,也是正确的。