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
github.com/gogf/gf/v2 v2.6.1
dao.EventTask.Ctx(ctx).WhereIn(dao.EventTask.Columns().TaskStatus, g.SliceStr{consts.TaskStatusUnprocessed, consts.TaskStatusProcessing}).All()
SELECT * FROM `event_task` WHERE `task_status` IN ('unprocessed','processing')
github.com/gogf/gf/v2 v2.6.1
dao.EventTask.Ctx(ctx).WhereIn(dao.EventTask.Columns().TaskStatus, g.SliceStr{consts.TaskStatusUnprocessed, consts.TaskStatusProcessing}).All()
SELECT * FROM `event_task` WHERE `task_status` IN ('unprocessed','processing')
The SQL that is actually executed is fine, but the SQL printed in the logs is problematic.
You can try to generate a query with two in filters and then check the log generated in logs.
We add some trace info into the sql hint, something like /* p=Eros,i=d0e3d7953427d4174bb17f2d3d0b9c95,f=GET /api/v1/oss/task?statuses=[%22Failed%22,%22Closed%22] */.
There is a placeholder ? in it which cause this issue.
What version of
Go
and system type/arch are you using?go1.20.10 darwin/amd64
What version of
GoFrame
are you using?v2.6.1
Can this bug be re-produced with the latest release?
yes
What did you do?
query with
in
filter, sql generated in log is wrong.What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: