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

INSERT/UPDATE/DELETE/UPSERT

    XMLWordPrintable

Details

    • Story
    • Resolution: Fixed
    • Major
    • 7.0.0
    • 6.5.0
    • query
    • None

    Description

      Be able to run basic DML statements.

       

      "A": { "val" : "A", "f1": "stuff", "f2": "other" }

      "B": { "val" : "B", "f1": 2 }

      "C": { "val" : "C", "f2": true }

       

      Setup: Standard.

      Action: Run statement INSERT INTO myBucket.myScope.myCollection VALUES ("foo", { "val" : "D", "f1" : "new" })

      Expected Result: New document appears in collection.

       

      Setup: Standard

      Action: Run statement UPDATE myBucket.myScope.myCollection SET f2 = "created" WHERE val = "B"

      Expected Result: Document B gets a new field f2:"created"

       

      Setup: Standard

      Action: Run statement DELETE FROM myBucket.myScope.myCollection WHERE val = "B"

      Expected Result: Document B is deleted.

       

      Setup: Standard.

      Action: Run statement UPSERT INTO myBucket.myScope.myCollection VALUES ("foo", { "val" : "D", "f1" : "upserted" })

      Expected Result: New document appears in collection.

      Attachments

        Issue Links

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

          Activity

            People

              marco.greco Marco Greco (Inactive)
              johan.larson Johan Larson (Inactive)
              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