[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-5491) Allow count(distinct(*))

Tomas Pollak (JIRA) noreply at atlassian.com
Sun Aug 22 22:57:41 EDT 2010


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-5491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=38160#action_38160 ] 

Tomas Pollak commented on HHH-5491:
-----------------------------------

Sorry, I realized after posting the patch that the syntax count(distinct(*)) is not accepted by some databases.

> Allow count(distinct(*))
> ------------------------
>
>                 Key: HHH-5491
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-5491
>             Project: Hibernate Core
>          Issue Type: Improvement
>    Affects Versions: 3.5.5
>            Reporter: Tomas Pollak
>         Attachments: DistinctRowCountProjection.java
>
>
> RowCountProjection does not allow to do a count on distinct rows, like count(distinct(*)).
> I'm attaching a trivial implementation for this (should be merged to RowCountProjection).
> Thanks.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list