[ 
https://issues.apache.org/jira/browse/OAK-7131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16319948#comment-16319948
 ] 

Thomas Mueller commented on OAK-7131:
-------------------------------------

I agree, this is serious. Another example is:

{noformat}
/jcr:root/(content | dam)[@a=1 or @b=2] order by @foo
{noformat}

It looks like the bug occurs if both "xpath union" and "order by" is used at 
the same time.

> xpath to sql2 conversion drops order by clause for some cases
> -------------------------------------------------------------
>
>                 Key: OAK-7131
>                 URL: https://issues.apache.org/jira/browse/OAK-7131
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: query
>            Reporter: Vikas Saurabh
>            Assignee: Thomas Mueller
>            Priority: Critical
>             Fix For: 1.10
>
>
> When xpath has OR-ed primary type and a couple of OR-ed property constraint 
> (e.g. \[0]), the converted sql statement doesn't get ordering clause.
> \[0]:
> {noformat}
> //(element(*, type1) | element(*, type2))[@a='b' or @c='d'] order by @foo
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to