JDO : Support DISTINCT properly

Bug #771285 reported by Timo Westkämper
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Querydsl
Fix Released
Undecided
Unassigned

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"

Revision history for this message
Timo Westkämper (timo-westkamper) wrote :

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

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

becomes

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

Changed in querydsl:
status: New → Fix Committed
Revision history for this message
Timo Westkämper (timo-westkamper) wrote :

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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.