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

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

          Activity

            People

              ajay.bhullar Ajay Bhullar
              marco.greco Marco Greco (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                PagerDuty