Quote function need support #2171

Open
opened 2022-08-26 09:36:20 +00:00 by zceuiv · 0 comments

In order to support JSON query IN mysql8.0, I use query field like this:

field := "`business_data`->'$.id'"

in function internal/statements/order_by.go/(*Statement).Desc, my field was transformed to something like

"``business_data`->'$`.`vmodel'`"

by function Quoter().QuoteTo, then it doesn't work.

I need help to fix function QuoteTo, thx.

In order to support JSON query IN mysql8.0, I use query field like this: ``` field := "`business_data`->'$.id'" ``` in function internal/statements/order_by.go/(*Statement).Desc, my field was transformed to something like ``` "``business_data`->'$`.`vmodel'`" ``` by function Quoter().QuoteTo, then it doesn't work. I need help to fix function QuoteTo, thx.
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: xorm/xorm#2171
No description provided.