Uploaded image for project: 'Teiid'
  1. Teiid
  2. TEIID-5279

OData4 translator incorrecly translates modulo function

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 8.12.11.6_4
    • Fix Version/s: 10.0.4, 10.2, 10.1.2
    • Component/s: OData
    • Labels:
      None

      Description

      With an OData4 translator, the modulo function is translated incorrectly:
      WHERE MOD(number, 11) = 3 is translated to filter=mod(number,11) eq 3

      but in OData spec, mod is an infix function, so the filter should be filter=number mod 11 eq 3

      See http://docs.oasis-open.org/odata/odata/v4.0/odata-v4.0-part2-url-conventions.html#_Toc444868689

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                rareddy Ramesh Reddy
                Reporter:
                jmartisk Jan Martiska
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: