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

DB2 substring index bounds are different than teiid

    Details

    • Type: Quality Risk
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 7.0
    • Fix Version/s: 7.4
    • Component/s: Misc. Connectors
    • Labels:
      None

      Description

      DB2/Derby do not allow the start argument to be negative or be greater than or equal to the length. The length parameter cannot be negative (Teiid returns null), and it plus the start cannot exceed the string length.

      In general we are inconsistent with our handling of negative string indexing. For example the locate function. We should look at making this more consistent in Teiid 8.

        Gliffy Diagrams

          Attachments

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: