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

[BP 6.5.1 MB-36796] - EXPLAIN/PREPARE query failing with eventing handler with syntax error

    XMLWordPrintable

Details

    • Untriaged
    • Unknown

    Description

      Build: 6.5.0-4756

      Query EXPLAIN UPSERT INTO src_bucket VALUES ("key1", { "a" : "b" }) , failing with syntax error. 

      function OnUpdate(doc, meta) {
          try{
              var query=EXPLAIN UPSERT INTO src_bucket VALUES ("key1", { "a" : "b" });        var key = Date.now()+Math.random();
              dst_bucket[key]={'passed_query' : 'EXPLAIN UPSERT INTO src_bucket VALUES ("key1", { "a" : "b" });
      '};
          }
          catch(e){
              var key = Date.now()+Math.random();
              dst_bucket[key]={'failed_query' : 'EXPLAIN UPSERT INTO src_bucket VALUES ("key1", { "a" : "b" });
      '};
          }
      } 

      Attachments

        Issue Links

          Activity

            People

              Gautham.Banasandra Gautham Banasandra (Inactive)
              jeelan.poola Jeelan Poola
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                PagerDuty