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

Call execQuery() on non-SELECT queries

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 5.5.0
    • 5.5.0
    • eventing

    Description

      For queries which aren't SELECT, the transpiled code itself should call execQuery() in the N1qlQuery instance. Right now, we treat it as query declaration and we don't kick-off the query unless it is iterated over or execQuery() is called on it explicitly.

      For example, we're doing this right now -

      var q = INSERT INTO x VALUES(k, v);

      q.execQuery();

      The transpiled code should convert the query as -

      var q = (new N1qlQuery('INSERT INTO x VALUES (k, v);')).execQuery();

      Attachments

        For Gerrit Dashboard: MB-28092
        # Subject Branch Project Status CR V

        Activity

          People

            Gautham.Banasandra Gautham Banasandra (Inactive)
            Gautham.Banasandra Gautham Banasandra (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty