]
Gail Badner updated HHH-5122:
-----------------------------
Fix Version/s: 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
Fix For: 3.5.x
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: