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

OData4 translator incorrecly translates modulo function

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 10.0.4, 10.2, 10.1.2
    • 8.12.11.6_4
    • OData
    • None

      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

              rhn-engineering-rareddy Ramesh Reddy
              jmartisk@redhat.com Jan Martiska
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: