-
Bug
-
Resolution: Done
-
Minor
-
4.0.0.Beta1
-
None
Assume I only have the following nodes in the repo that need to be found
/a/b/c/d/e
/a/b/c/d[2]/e
According to XPathToQUeryTranslaterTest (Lines 66 ff) the following queries should deliver the same result:
/jcr:root/a/b/c/d/e
returns 2 results
SELECT * FROM [nt:base] AS BASE WHERE PATH(BASE) LIKE '/a/b/c/d[%]/e[%]'
returns no result at all
SELECT * FROM [nt:base] AS BASE WHERE PATH(BASE) LIKE '/a/b/c/d[%]/e%'
returns only /a/b/c/d[2]/e
SELECT * FROM [nt:base] AS BASE WHERE PATH(BASE) LIKE '/a/b/c/d%/e%'
returns 2 results
So the brackets don't work as expected, but omiting them solves the problem. Is this the expected behaviour or a bug?