Showing the changes to Source/Libraries/GSF.Web/Model/ModelController.cs (1 of 1 file). Show all
Unified · Split
| @@ -524,8 +524,10 @@ namespace GSF.Web.Model · 523 unmodified lines | ||
| 524 | 524 | things = things.Select(t => $"'{t}'").ToList(); |
| 525 | 525 | search.SearchText = $"({string.Join(",", things)})"; |
| 526 | 526 | } |
| 527 | − | |
| 528 | − return $"[{(search.isPivotColumn ? "AFV_" : "") + search.FieldName}] {search.Operator} {search.SearchText}"; | |
| 527 | + string escape = "ESCAPE '$'"; | |
| 528 | + if(search.Operator != "LIKE") | |
| 529 | + escape = ""; | |
| 530 | + return $"[{(search.isPivotColumn ? "AFV_" : "") + search.FieldName}] {search.Operator} {search.SearchText} {escape}"; | |
| 529 | 531 | })); |
| 530 | 532 | |
| 531 | 533 | if (searches.Any()) |