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 | things = things.Select(t => $"'{t}'").ToList(); | 524 | things = things.Select(t => $"'{t}'").ToList(); |
| 525 | search.SearchText = $"({string.Join(",", things)})"; | 525 | search.SearchText = $"({string.Join(",", things)})"; |
| 526 | } | 526 | } |
| 527 | 527 | string escape = "ESCAPE '$'"; | |
| 528 | return $"[{(search.isPivotColumn ? "AFV_" : "") + search.FieldName}] {search.Operator} {search.SearchText}"; | 528 | if(search.Operator != "LIKE") |
| 529 | escape = ""; | ||
| 530 | return $"[{(search.isPivotColumn ? "AFV_" : "") + search.FieldName}] {search.Operator} {search.SearchText} {escape}"; | ||
| 529 | })); | 531 | })); |
| 530 | 532 | ||
| 531 | if (searches.Any()) | 533 | if (searches.Any()) |