Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-20042

substr should start from 1

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 5.0.0
    • 5.0.0
    • query
    • None
    • Untriaged
    • No
    • Query-Sprint-02-13-2018

    Description

      query:
      SELECT substr("abc", 1);

      returns
      [

      { "$1": "bc" }

      ].

      It should return
      [

      { "$1": "abc" }

      ]
      , so as to be consistent with other standard SQL implementations, e.g., Oracle, Postgres etc.

      Attachments

        Activity

          People

            korrigan.clark Korrigan Clark (Inactive)
            yingyi Yingyi Bu (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              PagerDuty