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

JPQL doens't support ORDER BY UPPER(fieldname)

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      I tried to solve it myself

      I have changed
      \openjpa\openjpa-kernel\src\main\jjtree\org\apache\openjpa\kernel\jpql\JPQL.jjt
      void orderby_extension() #ORDERBYEXTENSION : { }
      {
      aggregate_select_expression()
      }
      to
      void orderby_extension() #ORDERBYEXTENSION : { }
      {
      aggregate_select_expression() | upper()
      }

      But afraid that it might break any other cases.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                alexkarpov Alexander Karpov
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: