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

NOT replaced by ! is not working in n1ql, but works in sql

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 4.5.1, 5.0.0
    • 4.5.0, 5.0.0
    • query
    • 4.5.0-2594
    • Untriaged
    • Unknown

    Description

      Create a simple doc with contents:
      {
        "name": "prerna"
      }
       
      Issue a simple query:
      select * from simple_table_1 where (name = "prerna");
       
      works correctly
       
      Same query if written as:
      select * from simple_table_1 where NOT(name != "prerna");
       
      works correctly.
      But following query does not give any result:
      select * from simple_table_1 where !(name != "prerna");
       
      Both queries result in correct results in mysql.
      

      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)
              Prerna.Manaktala Prerna Manaktala (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty