Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0.0-RC1
-
None
Description
given this JDOQL:
SELECT DISTINCT this.paymentMethod FROM IncomingInvoice
it is not possible to submit using RepositoryService#allMatches(...)
compared to v1, the reason seems to be that we used to use JDOQuery#executeWithMap(), whereas now we use JDOQuery#executeList, and the latter has a check for whether there is a return phrase (ie "DISTINCT this.paymentMethod").
The fix, I think, is to call either JDOQuery#executeResultList rather than JDOQuery#executeList if there is a result phrase.