JDO : Support DISTINCT properly

Bug #771285 reported by Timo Westkämper on 2011-04-26
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fix Released

Bug Description

JDOQLQuery query = ...
QCarModel model = QCarModel.carModel;
query.from(model).where ....
return query.listDistinct(model);

Datanucleus generates error : "variable=DISTINCT is not yet bound so returning UnboundExpression"

Fixed by always serializing the projection, when distinct is declared :

SELECT DISTINCT FROM parts.beans.CarModel WHERE ...


SELECT DISTINCT this FROM parts.beans.CarModel WHERE ...

Changed in querydsl:
status: New → Fix Committed

Released in 2.2.0-beta4

Changed in querydsl:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers