Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-491

JPQL extension: scalar functions in GROUP BY

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.9.0, 0.9.6, 0.9.7, 1.0.0, 1.0.1
    • Fix Version/s: 1.1.0
    • Component/s: None
    • Labels:
      None

      Description

      JPQL does not allow scalar functions to be used in GROUP BY clauses. This can be useful. Example:

      select substring(o.stringField, 1, 1), count(o) from AllFieldTypes o
      group by substring(o.stringField, 1, 1)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              pcl Patrick Linskey
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: