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
It is very common for developers to add(or mistakenly add) spaces to the WhereHolder, could we do some improvements to make it be compatible with this scenario?
I made a debug of gdb, maybe Trim leading and trailing spaces on WhereHolder in formatWhereHolder() is an easy resolution.
The text was updated successfully, but these errors were encountered:
1. What version of
Go
and system type/arch are you using?go version go1.17.3 darwin/amd64
2. What version of
GoFrame
are you using?v2.0.4
3. Can this issue be re-produced with the latest release?
Yes
4. What did you do?
Query ORM,
Note, there is a space before and after
id
5. What did you expect to see?
Correct Mysql query should be translated and executed
6. What did you see instead?
Wrong SQL is translated, the condition value is missing
Summary:
It is very common for developers to add(or mistakenly add) spaces to the WhereHolder, could we do some improvements to make it be compatible with this scenario?
I made a debug of
gdb
, maybe Trim leading and trailing spaces on WhereHolder in formatWhereHolder() is an easy resolution.The text was updated successfully, but these errors were encountered: