[MDEV-14213] Wrong result set from a query aggregation and HAVING over SF call Created: 2017-10-30 Updated: 2023-11-28 |
|
| Status: | Confirmed |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Affects Version/s: | 10.7, 10.8, 10.9, 10.10 |
| Fix Version/s: | 10.11 |
| Type: | Bug | Priority: | Major |
| Reporter: | Igor Babaev | Assignee: | Michael Widenius |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | 11.0-sel | ||
| Description |
|
The query with HAVING from the following result test case
returns an empty result set.
MariaDB [test]> SELECT next_seq_value() r, MIN(u) FROM t1 GROUP BY t HAVING r = 1;
-----
-----
|
| Comments |
| Comment by Alice Sherepa [ 2022-12-05 ] |
|
currently, 10.3-10.6 return empty results, but the bug repeatable on 10.7 b7ae4d442aa32752798 -10.11 |