Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-20229

CTE defined with table value constructor cannot be used in views.

    XMLWordPrintable

    Details

      Description

      The following query demonstrates the problem:

      create view v1 as with t(a) as (values (2), (1)) select a from t;
      

      MariaDB [test]> select * from v1;
      ERROR 1356 (HY000): View 'test.v1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
      

        Attachments

          Activity

            People

            Assignee:
            igor Igor Babaev
            Reporter:
            igor Igor Babaev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: