Uploaded image for project: 'Couchbase Documentation'
  1. Couchbase Documentation
  2. DOC-7182

Syntax changes for CREATE STATEMENT GA

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • Major
    • Cheshire-Cat
    • Cheshire-Cat
    • query

    Description

      CREATE FUNCTION statement syntax has been changed slightly to match analytics.
      1- we now support CREATE OR REPLACE FUNCTION, where a function is dropped and recreated in one step

      2- an empty parameter list now means the function takes no arguments
      this will be enforced at execution
      variadic functions are signalled by 3 dots inside the parenthesis:

      CREATE FUNCTION func1(...)

      { 1 }

      3- the javascript object syntax has changed from

      AS

      { "library", "object" }

      to

      AS "object" AT "library"

      Attachments

        Issue Links

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

          Activity

            People

              simon.dew Simon Dew
              marco.greco Marco Greco (Inactive)
              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