Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-2673

Support ordering by aggregate functions

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.2.M2
    • Component/s: Core Library
    • Labels:
      None

      Description

      Ordering generated by expression like Parent.CHILD.count().asc() is formally valid and accepted by the Cayenne stack, but it generates invalid SQL. To be specific, Group By clause is missing in that case.
      It doesn't seem important feature but we still should support this ordering, especially this doesn't require much effort in the current translator.

        Attachments

          Activity

            People

            • Assignee:
              ntimofeev Nikita Timofeev
              Reporter:
              ntimofeev Nikita Timofeev
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: