Details
-
Bug
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
-
11.7.0
-
None
Description
./mtr main.derived --view
|
Attachments
Issue Links
- causes
-
MDEV-36474 Prepared statement with derived table column name specification within used view causing memory use-after-free
-
- Stalled
-
- is caused by
-
MDEV-31466 Add optional correlation column list for derived tables
-
- Closed
-
view is created as
TYPE=VIEW
query=select `d3`.`a1` AS `a1` from (select `test`.`t1`.`c1` AS `a1`,`test`.`t1`.`c2` AS `a2`,`test`.`t1`.`c3` AS `a3` from `test`.`t1` union select `test`.`t2`.`c1` AS `c1`,`test`.`t2`.`c2` AS `c2`,`test`.`t2`.`c3` AS `c3` from `test`.`t2` order by `c1`) `d3`(`a1`,`a2`,`a3`)
which, because the derived table's unit contains a union, isn't valid
| a1 | a2 | a3 |
| 1 | 2 | 3 |
| 4 | 5 | 6 |