[MDEV-28573] View has to fail with error ER_SUBQUERY_NO_1_ROW (1242) but it doesn't 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 |
|
When the definition of view contains subselect with aggregation function COUNT() that returns more 1 row it has to fail with error ER_SUBQUERY_NO_1_ROW (1242) (or smth. like that ) but it doesn't Test:
Actual result:
Using EXPLAIN EXTENDED it is seen the difference between:
and select from view:
|
| Comments |
| Comment by Igor Babaev [ 2023-03-07 ] |
|
The reported test case has been added in patch for |