Description
Steps to reproduce:
1. Create query below hippo:queries
<sv:node sv:name="boog2" xmlns:sv="http://www.jcp.org/jcr/sv/1.0">
<sv:property sv:name="jcr:primaryType" sv:type="Name">
<sv:value>hippo:query</sv:value>
</sv:property>
<sv:property sv:name="jcr:language" sv:type="String">
<sv:value>JCR-SQL2</sv:value>
</sv:property>
<sv:property sv:name="jcr:statement" sv:type="String">
<sv:value>select f.* from [hippostd:folder] as f inner join [nt:version] as b on ISDESCENDANTNODE(f, b) inner join [nt:version] as c on ISDESCENDANTNODE(b, c)</sv:value>
</sv:property>
</sv:node>
2. Execute it with the query manager. Result: StackOverflowError
Patch for proposed fix attached
Attachments
Issue Links
- is cloned by
-
REPO-1491 [Backport 3.2] StackOverflowError on more than one join (with patch)
- Closed