[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-1615) GROUP BY entity does not work

Benny Goemans (JIRA) noreply at atlassian.com
Sun Sep 17 14:14:25 EDT 2006


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1615?page=comments#action_24524 ] 

Benny Goemans commented on HHH-1615:
------------------------------------

Can anyone tell me if this can be circumvented some way? I'm migrating from a MySQL to PostgreSQL database soon and can't afford my system going down.
And if someone knows a fix, please tell me.

> GROUP BY entity does not work
> -----------------------------
>
>          Key: HHH-1615
>          URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1615
>      Project: Hibernate3
>         Type: Bug

>   Components: query-hql
>     Versions: 3.1.3
>  Environment: PostgreSQL 8.1.3, Hibernate 3.1.3
>     Reporter: Xavier Bugaud

>
>
> The query : "select cat, count(*) from Cat cat group by cat" does not work.
> ERROR: column "xxxx" must appear in the GROUP BY clause or be used in an aggregate function
> See :
>  - http://forum.hibernate.org/viewtopic.php?t=953716
>  - http://jira.nhibernate.org/browse/NH-528

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