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

OData function parameters should not implicitly convert

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 8.13, 8.12.5
    • None
    • OData
    • None

      OData function param literal strings can be parsed as the expected type with the current code, however this is not the general expectation of odata. It's explicitly mentioned that there is no implicit conversion between string and numeric types:

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

      And the sample service behaves the same way for DateTimeOffset:

      http://services.odata.org/V4/Northwind/Northwind.svc/Orders?$filter=OrderDate+eq+%271997-01-07T00:00:00Z%27

              rhn-engineering-shawkins Steven Hawkins
              rhn-engineering-shawkins Steven Hawkins
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: