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

Wrong indexing with SUBSTRING function and OData4 translator

XMLWordPrintable

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

      SQL SUBSTRING function indexes strings from 1, but OData substring filtering function indexes from zero. This needs to be taken into account.
      Currently a query containing WHERE SUBSTRING(stringkey, 1, 1) = 'x' will return items where the second character is x, but it should return rows where the first character is x.

              rhn-engineering-shawkins Steven Hawkins
              jmartisk@redhat.com Jan Martiska
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: