[hibernate-issues] [Hibernate-JIRA] Created: (HHH-5122) SQL generation bug in ProjectionList.toSqlString(...)

thogau (JIRA) noreply at atlassian.com
Thu Apr 15 08:15:59 EDT 2010


SQL generation bug in ProjectionList.toSqlString(...)
-----------------------------------------------------

                 Key: HHH-5122
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-5122
             Project: Hibernate Core
          Issue Type: Bug
          Components: query-criteria
    Affects Versions: 3.5.1
         Environment: mysql 5
            Reporter: thogau
         Attachments: criteria_problem.zip

line 76 of ProjectionList.java

<code>loc += getColumnAliases(loc, criteria, criteriaQuery, proj ).length;<code>

variable *loc* in never incremented and the consequence is the sql generated looks like : 

<code>select distinct this_.id as *y0_*, this_.name as *y0_* from groupe this_ order by y0_ asc<code>

cheers,

--Thomas

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