Uploaded image for project: 'Blazegraph (by SYSTAP)'
  1. Blazegraph (by SYSTAP)
  2. BLZG-4249

SUBSTR with starting location less than 1

    XMLWordPrintable

    Details

      Description

      select ?sub ?sub2 ?sub3 WHERE

      { BIND ( SUBSTR('123', -1, 2) as ?sub ). BIND ( SUBSTR('123', 0, 2) as ?sub2 ). BIND ( SUBSTR('123', 1, 2) as ?sub3 ). }

      returns

      sub sub2 sub3
      12 12 12

      where XPath implementations return '', '1'and '12' cfr Xalan and Saxon.

      See also https://www.w3.org/TR/xpath/
      where specification gives as an example: substring("12345", 0, 3) returns "12"

        Attachments

          Activity

            People

            Assignee:
            igorkim igorkim
            Reporter:
            natan.cox Natan Cox
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: