I am using a JCR SQL2 query as below:
SELECT parent.* FROM [rep:User] AS parent INNER JOIN [nt:unstructured] AS child ON ISCHILDNODE(child,parent) WHERE ISDESCENDANTNODE(parent,'/website/test/users') AND (UPPER(child.[email]) ='[email protected]') AND (child.[email] IS NOT NULL)
I am getting the correct reqults in this case.
But how can I escape apostraphe in email in JCR SQL2 query?
For example if i search firstname_last'[email protected]
, I am getting java.text.ParseException.
How can i escape special characters in JCR SQL2 query?