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

Workbench UI: need some special handling for special commands

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 4.5.0
    • 4.5.0
    • tools
    • None

    Description

      Keshav helped me construct a clever command to create drop index statements for all commands:
      select array_agg("drop index `" || keyspace_id || "`.`" || name || ";") as dropidx from system:indexes;

      This works well when going through cbq, but presents an error in the workbench;
      [

      { "code": 1065, "msg": "Unrecognized parameter in request: \") as dropidx from system:indexes) cbq_query_workbench_limit limit 500", "query_from_user": "select array_agg(\"drop index `\" || keyspace_id || \"`.`\" || name || \";\") as dropidx from system:indexes;", "query_with_limit": "select cbq_query_workbench_limit.* from (select array_agg(\"drop index `\" || keyspace_id || \"`.`\" || name || \";\") as dropidx from system:indexes) cbq_query_workbench_limit limit 500;" }

      ]

      When I run the "wrapped" command via cbq I get an error as well.

      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:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty