Skip to content

Commit

Permalink
fixed small % _ interaction in searchterm
Browse files Browse the repository at this point in the history
  • Loading branch information
az108 committed Oct 9, 2024
1 parent 23f045d commit 098e8f7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1247,7 +1247,7 @@ SELECT MAX(pr.id)
WHERE p.exercise.id = :exerciseId
AND p.testRun = FALSE
AND f.positive = FALSE
AND (:searchTerm = '' OR LOWER(f.detailText) LIKE LOWER(CONCAT('%', :searchTerm, '%')))
AND (:searchTerm = '' OR LOWER(f.detailText) LIKE LOWER(CONCAT('%', REPLACE(REPLACE(:searchTerm, '%', '\\%'), '_', '\\_'), '%')) ESCAPE '\\')
AND (:#{#filterTestCases != NULL && #filterTestCases.size() < 1} = TRUE OR f.testCase.testName IN (:filterTestCases))
AND (:#{#filterTaskNames != NULL && #filterTaskNames.size() < 1} = TRUE OR f.testCase.testName IN (
SELECT tct.testName
Expand Down

0 comments on commit 098e8f7

Please sign in to comment.