Gorm 数据库有记录为啥报 record not found Gorm 数据库有记录为啥报 record not found

Gorm 数据库有记录为啥报 record not found Gorm 数据库有记录为啥报 record not found

Comment From: liu-cn

gorm v1.25.5

Comment From: liu-cn

go 1.21.0

Comment From: liu-cn

gorm.io/driver/mysql v1.5.2

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

Comment From: liu-cn

用原生语句就可以查到 Gorm 数据库有记录为啥报 record not found

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

Comment From: GP-JVM

你查不到是100%查不到还是说大部分查不到,

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

Comment From: liu-cn

你查不到是100%查不到还是说大部分查不到,

大部分吧

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

Comment From: GP-JVM

你查不到是100%查不到还是说大部分查不到,

大部分吧

你这个打印一下SQL,我也是大部分查不到,设置了gorm的最大空闲连接数和最大连接数,总是查着查着就出错

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

Comment From: liu-cn

是的是的,大部分查不到,好像是不能设置最大空闲连接数吧,我也不知道咋回事

刘北洛 @.***

go开发

------------------ 原始邮件 ------------------ 发件人: GP-JVM @.> 发送时间: 2023年11月21日 22:39 收件人: go-gorm/gorm @.> 抄送: beluo @.>, Author @.> 主题: Re: [go-gorm/gorm] 数据库有记录为啥报 record not found (Issue #6699)

你查不到是100%查不到还是说大部分查不到,

大部分吧

你这个打印一下SQL,我也是大部分查不到,设置了gorm的最大空闲连接数和最大连接数,总是查着查着就出错

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

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

Comment From: withSunday

Gorm 数据库有记录为啥报 record not found

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

Comment From: liu-cn

可能不是这个原因,我新创建个连接,没设置最大空闲连接之类的参数,只有连接字符串,然后就不会报错了

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

Comment From: Shineloner

老哥定位到原因了吗?我这里也出现了,也是改成用原生sql就正常