You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using Hook Select when querying data, if a coroutine is used internally and the Value() method or Sum() is called multiple times, there is a probability that a null value will be returned. (Confirm that the database has values) and no errors are reported
#3238
What version of Go and system type/arch are you using?
go1.20.4 linux/amd64
What version of GoFrame are you using?
2.5.6和2.6.1都同时存在该问题
Can this bug be re-produced with the latest release?
yes
What did you do?
以下代码和图片可以看到在使用Hook Select时,如果内部使用协程,进行多次Value()方法查询时,有概率数据返回为空(当Limit越多时出现概率越高),包括SUM()等内部调用了Value()方法的都有这种问题。但注意:调用One()或All()等方法完全不会有这种问题
The text was updated successfully, but these errors were encountered:
JB-fy
added
the
bug
It is confirmed a bug, but don't worry, we'll handle it.
label
Jan 3, 2024
Issues-translate-bot
changed the title
数据查询时使用Hook Select时,如果内部使用协程,且多次调用Value()方法或Sum()等内部调用过Value()方法的时候,有概率出现返回空值(确认数据库有值)且无报错的情况
When using Hook Select when querying data, if a coroutine is used internally and the Value() method or Sum() is called multiple times, there is a probability that a null value will be returned. (Confirm that the database has values) and no errors are reported
Jan 3, 2024
What version of
Go
and system type/arch are you using?go1.20.4 linux/amd64
What version of
GoFrame
are you using?2.5.6和2.6.1都同时存在该问题
Can this bug be re-produced with the latest release?
yes
What did you do?
以下代码和图片可以看到在使用Hook Select时,如果内部使用协程,进行多次Value()方法查询时,有概率数据返回为空(当Limit越多时出现概率越高),包括SUM()等内部调用了Value()方法的都有这种问题。但注意:调用One()或All()等方法完全不会有这种问题
这里id3的数据返回空字符串
这里id4的数据返回0
使用One方法不会出现这种情况
The text was updated successfully, but these errors were encountered: