[hibernate-issues] [Hibernate-JIRA] Updated: (HHH-5122) SQL generation bug in ProjectionList.toSqlString(...)
Gail Badner (JIRA)
noreply at atlassian.com
Fri Apr 16 14:34:58 EDT 2010
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-5122?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gail Badner updated HHH-5122:
-----------------------------
Fix Version/s: (was: 3.5.x)
> 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
> Assignee: Gail Badner
> 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