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

DB2 substring index bounds are different than teiid

XMLWordPrintable

    • Icon: Quality Risk Quality Risk
    • Resolution: Done
    • Icon: Minor Minor
    • 7.4
    • 7.0
    • Misc. Connectors
    • None

      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.

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

              Created:
              Updated:
              Resolved: