Details
-
Bug
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
10.11.18, 13.0.1
-
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
- relates to
-
MDEV-22269 GROUPING() function
-
- Stalled
-