[MDEV-13399] Subquery returns multiple rows error when using column not marked as KEY Created: 2017-07-28 Updated: 2020-12-01 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Affects Version/s: | 5.5, 10.0 |
| Fix Version/s: | 10.2 |
| Type: | Bug | Priority: | Major |
| Reporter: | Vicențiu Ciorbaru | Assignee: | Vicențiu Ciorbaru |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Description |
|
The following queries should return identical results, but they do not:
This one returns NULL While this one:
Returns: Error: Subquery returns more than 1 row This test case is from 10.0 behaves the same as the last example, with or without KEY being present.
|
| Comments |
| Comment by Vicențiu Ciorbaru [ 2017-07-28 ] |
| Comment by Elena Stepanova [ 2017-10-17 ] |
|
10.1 and 10.2 behave the same way as 10.0 – return the error for both cases. So, which identical results should it be, NULL or the error? |