JDO : Support DISTINCT properly
Bug #771285 reported by
Timo Westkämper
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(
return query.listDisti
Datanucleus generates error : "variable=DISTINCT is not yet bound so returning UnboundExpression"
To post a comment you must log in.
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 ...