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

Wrong indexing with SUBSTRING function and OData4 translator

    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

      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                shawkins Steven Hawkins
                Reporter:
                jmartisk Jan Martiska
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: