Uploaded image for project: 'Couchbase Documentation'
  1. Couchbase Documentation
  2. DOC-10082

CREATE INDEX/UPDATE statements treats as field

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • Trinity
    • None
    • query

    Description

      CREATE default bucket

      CREATE SCOPE default.s1;

      CREATE COLLECTION default.s1.c1;

      CREATE INDEX ix1 ON default.s1.c1(c1);

      Reports as Index of 'self (near line 1, column 7)' is not allowed 

      There is no self here.  FYI: The error is due to MB-51996, but underneath problem exist from long time and it  wrongly indexing.

       

      The problem here is during formalization if expression is identifier matches with keyspace we are converting into self. That is wrong during DDL. 

      Attachments

        Issue Links

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

          Activity

            People

              simon.dew Simon Dew
              Sitaram.Vemulapalli Sitaram Vemulapalli
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty