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

Missing field name in view definition

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.11.18, 13.0.1
    • 13.0
    • Views
    • None
    • Unexpected results

    Description

      print_order, called in creating a view definition, is missing the name of the field as shown

      CREATE VIEW v AS
      SELECT (SELECT  MAX(a) FROM t1) as field1 FROM t1 GROUP BY field1 WITH ROLLUP HAVING GROUPING(field1)=0;
      

      and the view is stored as

        select (select max(`test`.`t1`.`a`) from `test`.`t1`) AS `field1`
          from `test`.`t1`
          group by (select max(`test`.`t1`.`a`) from `test`.`t1`) with rollup
         having grouping(`field1`) = 0
      

      making resolution of the grouping field impossible.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Johnston Rex Johnston
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.