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

Applying N1QL "format" on more complex statements can indent incorrectly

    XMLWordPrintable

Details

    • Untriaged
    • Unknown

    Description

      When applying the new 6.5 "format" feature in the N1QL query editor complex queries are sometimes not indented correctly to the proper level.

      The two example N1QL files ( indents_fine.n1ql and indents_bad.n1ql ) are almost identical.

      BUT the format differently WRT indenting see attached image where the last three lines are incorrectly indented and additional level.

      Attachments

        1. indents_bad.n1ql
          1.0 kB
        2. indents_fine.n1ql
          1 kB
        3. issue_pic.JPG
          issue_pic.JPG
          131 kB

        Activity

          People

            eben Eben Haber
            jon.strabala Jon Strabala
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              PagerDuty