[MDEV-13439] Database permissions are not enough to run a subquery with GROUP BY within a view Created: 2017-08-03 Updated: 2020-08-25 Resolved: 2017-08-10 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data Manipulation - Subquery, Views |
| Affects Version/s: | 10.2 |
| Fix Version/s: | 10.2.8 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Elena Stepanova | Assignee: | Oleksandr Byelkin |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
The view gets created all right, but SELECT * FROM v fails:
Here is a slightly different test case which might give a hint for a reason:
In this case, SELECT ends with a different error:
So, it looks like it's the temporary table that the user has no access to. |
| Comments |
| Comment by Oleksandr Byelkin [ 2017-08-04 ] | |||
|
Problem is not in "group by" but in temporary table of subquery in the FROM clause. This also fail:
| |||
| Comment by Oleksandr Byelkin [ 2017-08-07 ] | |||
|
revision-id: cf66c30ce592ad88d447568272bdced2046f2906 (mariadb-10.2.7-20-gcf66c30ce59)
The bug is result adding ability to have derived tables inside views. — | |||
| Comment by Oleksandr Byelkin [ 2017-08-07 ] | |||
|
github branch is bb-10.2- |