[MDEV-28570] Select from view fails if definition of view has 'HAVING' in query Created: 2022-05-16 Updated: 2023-03-07 Resolved: 2023-03-07 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Views |
| Affects Version/s: | 10.3, 10.4, 10.5, 10.6, 10.7, 10.8, 10.9 |
| Fix Version/s: | 10.11.3, 11.0.2, 10.4.29, 10.5.20, 10.6.13, 10.8.8, 10.9.6, 10.10.4 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Lena Startseva | Assignee: | Igor Babaev |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | view-protocol | ||
| Issue Links: |
|
||||||||||||||||
| Description |
|
Select from view fails if definition of view has 'HAVING' in query. Test:
Actual result:
Expected result:
|
| Comments |
| Comment by Igor Babaev [ 2023-02-26 ] | |||||||||
|
Note that if we use CTE with the same specification query as for the view we get the expected result
| |||||||||
| Comment by Igor Babaev [ 2023-03-07 ] | |||||||||
|
The reported test case has been added in patch for MDEV-30688 |