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
developer-r2tech
changed the title
orm: issue The SQL is wrong when using "WhereNotIn", if an empty parameter is passed
gdb: issue The SQL is wrong when using "WhereNotIn", if an empty parameter is passed
May 30, 2024
Go version
go version go1.21.9 linux/amd64
GoFrame version
2.7.1
Can this bug be reproduced with the latest release?
Option Yes
What did you do?
var ids []int
dao.User.Ctx(ctx).WhereNotIn("id", ids).Count()
What did you see happen?
SELECT COUNT(1) FROM
user
WHERE 0=1What did you expect to see?
SELECT COUNT(1) FROM
user
WHERE 1=1The text was updated successfully, but these errors were encountered: