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

Workbench: syntax error not very helpful due to added syntax

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 4.5.0
    • 4.5.0
    • tools
    • Security Level: Public
    • None
    • Untriaged
    • Unknown

    Description

      When I enter a query that has a syntax error, the syntax error message is referring to the "wrapped" query and not to my own, so it's hard to tell exactly where I went wrong:

      [

      { "code": 3000, "msg": "syntax error - at )" }

      ,

      { "query_from_user": "select * from default where any ainf in default.ev;" }

      ,

      { "query_with_limit": "select cbq_query_workbench_limit.* from (select * from default where any ainf in default.ev) cbq_query_workbench_limit limit 500;" }

      ]

      Attachments

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

        Activity

          People

            eben Eben Haber
            perry Perry Krug
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty