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

[BP to 7.0.4] select executing a function executing a select returns the same results

    XMLWordPrintable

Details

    • Untriaged
    • 1
    • Unknown

    Description

      Testcase:

      create function l(...)

      { (select length(args[0]))[0] }

      select a.type, l(a.type) from `travel-sample` a

      the second statement returns 7 for all rows.

      This is due to the subquery code mistakenly caching the result.

      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
              marco.greco Marco Greco (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty