Uploaded image for project: 'Olingo'
  1. Olingo
  2. OLINGO-1313

Add support for "toupper()" function

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • V2 2.0.10
    • None
    • odata2-jpa
    • None

    Description

      When using the "toupper" function in a $filter expression, the JPA processor fails with a ODataNotImplementedException.

      The same logic is already present for "tolower" in class ODataExpressionParser where it says

      case TOLOWER:
      return String.format("LOWER(%s)", first);
      

      The attached .patch file contains an implementation for toupper.

       

      Reasoning: SAPUI5 allows a "case-insensitive" filter, which uses the toupper() function internally.

      Attachments

        Activity

          People

            Unassigned Unassigned
            Bruno Haller Bruno Haller
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: