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

Ability to define LET/WITH statements on non-SELECT DML

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Done
    • Major
    • Morpheus
    • 7.1.0
    • query
    • None
    • 1

    Description

      Ability to Add WITH, LET statements for DML statements
      At present only SELECT allows this. Allowing others might benefit

      Evaluate rule out.
      INSERT/UPSERT/MERGE – may not any use.
      UPDATE (WITH may not useful unless JOIN is supported). That leaves with LET in UPDATE .

      UPDATE default AS d
      LET olddoc = d
      SET ........
      UNSET ....
      WHERE ........
      RETURNING olddoc, d;

       

       

      https://forums.couchbase.com/t/access-old-values-from-returning-clause-of-update/26094/2

      Attachments

        Issue Links

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

          Activity

            People

              pierre.regazzoni Pierre Regazzoni
              Sitaram.Vemulapalli Sitaram Vemulapalli
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty