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

N1QL 'like' clause doesn't work with strings containing newlines

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 4.6.0, 5.0.0
    • 4.5.0
    • query
    • None
    • Untriaged
    • Unknown

    Description

      Run the following N1QL query:

      select " parameterized query." like '%query%' alike;

      It works correctly, and 'alike' is true.

      Now add a newline to the query:

      select " parameterized query. \n" like '%query%' alike;

      'alike' is now false!

      Attachments

        Issue Links

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

          Activity

            People

              Prerna.Manaktala Prerna Manaktala (Inactive)
              eben Eben Haber
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty