You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Clemens Wyss (JIRA)" <ji...@apache.org> on 2010/10/22 07:42:20 UTC

[jira] Commented: (JCR-2765) JCR-SQL2 : no count when WHERE clause is provided

    [ https://issues.apache.org/jira/browse/JCR-2765?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12923763#action_12923763 ] 

Clemens Wyss commented on JCR-2765:
-----------------------------------

I agree that this is not a "Blocker", but manually counting through an iterator, just to get the count, is not really an option

> JCR-SQL2 : no count when WHERE clause is provided
> -------------------------------------------------
>
>                 Key: JCR-2765
>                 URL: https://issues.apache.org/jira/browse/JCR-2765
>             Project: Jackrabbit Content Repository
>          Issue Type: Improvement
>          Components: sql
>            Reporter: Clemens Wyss
>
> whenever you provide a where-clause to a sql2 select, jcr/jackrabbit does not provide the hit count.
> E.g.:
>    select * from [nt:unstructured]
>    order by [jcr:score]
> returns the hit count (query.execute().getRows().getSize()), 
> whereas
>   select * from [nt:unstructured]
>   where entity = "customer"
>   order by [jcr:score]
> doesn't.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.