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

JPQL doens't support ORDER BY UPPER(fieldname)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • None
    • 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

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

              Dates

                Created:
                Updated: