[MDEV-14349] Wrong result (extra rows) on select from view with subqueries and ANY Created: 2017-11-10 Updated: 2023-11-28 |
|
| Status: | Confirmed |
| Project: | MariaDB Server |
| Component/s: | Data Manipulation - Subquery, Optimizer, Views |
| Affects Version/s: | 5.5, 10.1, 10.2, 10.3, 10.4, 10.5, 10.6, 10.7, 10.8, 10.9, 10.10 |
| Fix Version/s: | 10.4, 10.5, 10.6 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Elena Stepanova | Assignee: | Igor Babaev |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | 11.0-sel | ||
| Description |
|
I think the result of the original query, without the view, is correct, because:
However it's sometimes hard to predict what the standard says in regard to a combination of ANY, <> and IN. In any case, the results should be obviously the same, whether the query is executed directly or via a view, which does not happen now.
Also reproducible on MySQL 5.5-5.7. |
| Comments |
| Comment by Elena Stepanova [ 2020-01-20 ] |
|
Still reproducible on all of 5.5-10.5. |