PRD

https://c9xudyniiq.feishu.cn/docx/Up8vdYg5ko0FhVx50e3cUSemnFg

bug info

在nightingale的代码里使用了gorm,通过model.where对某个表的列进行来判断是否存在,数据库里有数据,但是居然查询结果为空,导致多migrate出现冗余数据。 打开debug模式查询生成的sql并没有问题,但是奇怪的是这时候model.where能查询到了,后续换了raw也能查询到。

Comment From: github-actions[bot]

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