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

LTRIM trims more than expected

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not a Bug
    • Major
    • Morpheus
    • 7.6.0, 7.2.4
    • query
    • 7.6.0-1928
    • Untriaged
    • 0
    • Unknown

    Description

      For example 

      cbq> select ltrim("emp10000012", "emp100000"), ltrim("emp10000022", "emp100000");
      {
          "requestID": "86e30c93-3906-4cb9-a856-aae4fd88e6ac",
          "signature": {
              "$1": "string",
              "$2": "string"
          },
          "results": [
          {
              "$1": "2",
              "$2": "22"
          }
          ], 

      I would expect that "emp10000012" would be trimmed to 12

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            pierre.regazzoni Pierre Regazzoni
            pierre.regazzoni Pierre Regazzoni
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty