Skip to content
Snippets Groups Projects
Commit 0441b0e0 authored by vkovtun's avatar vkovtun
Browse files

SSDM-9369 Added escaping of "'" with "''" when StringContainsExactlyValue...

SSDM-9369 Added escaping of "'" with "''" when StringContainsExactlyValue criterion is used. Otherwise using "'" would lead to an exception.
parent 1c65ea55
Branches hdf5_1_12_0
No related tags found
No related merge requests found
......@@ -532,7 +532,7 @@ public class GlobalSearchCriteriaTranslator
private static String toTsQueryText(final AbstractStringValue stringValue)
{
return (StringContainsExactlyValue.class.isAssignableFrom(stringValue.getClass()))
? '\'' + stringValue.getValue() + '\''
? '\'' + stringValue.getValue().replaceAll("'", "''") + '\''
: stringValue.getValue().replaceAll("['&|:!()<>]", " ").trim().replaceAll("\\s+", " | ");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment