This commit is contained in:
eson 2023-09-01 16:28:07 +08:00
parent 1b14e69f58
commit 624681838c

View File

@ -55,7 +55,7 @@ func (mquery *ModuleQuery) EncodeQuery(field string) string {
if query != "" { if query != "" {
query = "." + query query = "." + query
} }
qstr = append(qstr, []byte(fmt.Sprintf("'%s.%s',%s ->> '$%s',", mquery.ModuleName, "."+query, field, query))...) qstr = append(qstr, []byte(fmt.Sprintf("'%s%s',%s ->> '$%s',", mquery.ModuleName, query, field, query))...)
} }
if qstr[len(qstr)-1] == ',' { if qstr[len(qstr)-1] == ',' {
qstr[len(qstr)-1] = ')' qstr[len(qstr)-1] = ')'