Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
4.0.M2
-
None
-
None
Description
I did some investigation, and in most cases COUNT(DISTINCT ..) does the right thing. Except when a path inside count ends in relationship (e.g. COUNT(DISTINCT p.artist)), in which case it generates SQL "COUNT (DISTINCT *)" that produces incorrect result.
Attachments
Issue Links
- is related to
-
CAY-2031 Fetching distinct related objects in EJBQL throws an exception
- Closed