[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-2384) Patch for using case-expression("case ... when ... end") in aggregate functions

Manuel Dominguez Sarmiento (JIRA) noreply at atlassian.com
Tue Oct 16 13:21:39 EDT 2007


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2384?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_28437 ] 

Manuel Dominguez Sarmiento commented on HHH-2384:
-------------------------------------------------

We've run into the same problem. Your patch seems to work fine. I wonder what's keeping the Hibernate team from intergrating this into an official release.

> Patch for using case-expression("case ... when ... end") in aggregate functions
> -------------------------------------------------------------------------------
>
>                 Key: HHH-2384
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2384
>             Project: Hibernate3
>          Issue Type: Patch
>          Components: query-hql
>    Affects Versions: 3.2.2
>            Reporter: Florian Rock
>            Priority: Minor
>         Attachments: aggrcasehql.patch
>
>
> using a case-expression in aggregate functions causes a QuerySyntaxException..
> ie.: "count(case when fubar > 0 then 1 else null end)" 
> i changed some things in the grammar to solve this, patch is attached.

-- 
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