Fixed
Details
Priority
MinorAssignee
AlexAlexReporter
Dmitry AndrejevDmitry AndrejevPatch Instructions
Patches must be submitted through Phabricator.
To submit patch via Command Line use Patches Workflow (via Arcanist) tutorial.
To submit patch via Web Interface use Patches Workflow (via Web Interface) tutorial.
External issue ID
97External issue URL
Fix versions
Affects versions
Details
Details
Priority
Assignee
Alex
AlexReporter
Dmitry Andrejev
Dmitry AndrejevPatch Instructions
Patches must be submitted through Phabricator.
To submit patch via Command Line use Patches Workflow (via Arcanist) tutorial.
To submit patch via Web Interface use Patches Workflow (via Web Interface) tutorial.
External issue ID
97
External issue URL
Fix versions
Affects versions
Created June 19, 2009 at 7:55 PM
Updated December 29, 2024 at 9:23 PM
Resolved January 12, 2010 at 4:05 AM
Currently LIKE type Admin Grid Filters won't properly work when we use " _ " or " % " in the search query. Both will be treated as "wildcards" by MySQL since not properly escaped.
Below is example of SQL used when we put " % " in Filter Search:
SELECT COUNT AS count
FROM News
LEFT JOIN CategoryItems ON CategoryItems.ItemResourceId = News.ResourceId
LEFT JOIN Category ON Category.CategoryId = CategoryItems.CategoryId
LEFT JOIN Images img ON img.ResourceId = News.ResourceId AND img.DefaultImg = 1
LEFT JOIN PermCache perm ON perm.CategoryId = CategoryItems.CategoryId
LEFT JOIN PortalUser u ON News.CreatedById = u.PortalUserId
LEFT JOIN NewsCustomData cust ON News.ResourceId = cust.ResourceId
WHERE ((PrimaryCat = 1) AND (perm.PermId = 1)) AND (((`News`.`Title` LIKE "%%%")))
LIMIT 0,1