[MDEV-6151] Wrong result (missing row) with LEFT JOIN, HAVING and ORDER BY Created: 2014-04-22 Updated: 2014-11-16 Resolved: 2014-11-16 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Affects Version/s: | 5.1.73, 5.2.15, 5.3.13 |
| Fix Version/s: | 5.1.73, 5.2.15, 5.3.13 |
| Type: | Bug | Priority: | Major |
| Reporter: | Elena Stepanova | Assignee: | Sergei Petrunia |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | upstream-fixed | ||
| Issue Links: |
|
||||||||||||
| Description |
|
Test case:
On current MariaDB 5.1, 5.2, 5.3, MySQL 5.1, 5.5 it returns the wrong result (empty set):
On current MariaDB 5.5, 10.0, MySQL 5.6, 57 it returns the expected result (1 row):
Story: The bug was introduced in MySQL 5.1 (and merged up) by the following revision:
Later the bug was fixed in MySQL 5.6 and up by the following revision:
The first change was merged into MySQL 5.5 and made it to MariaDB 5.5; but then the bug was fixed in MariaDB 5.5 by this revision:
So, it's not reproducible on MariaDB 5.5 and 10.0. Recently, MySQL 5.1 was merged into MariaDB 5.1/5.2/5.3. The faulty change was merged too, so the wrong result started appearing on these trees. But the fix for it only exists in MySQL 5.6 or MariaDB 5.5, so apparently the bug will stay in MySQL 5.1/5.5 forever, and in MariaDB 5.1-5.3 too unless we decide it's worth fixing. Please decide. |
| Comments |
| Comment by Elena Stepanova [ 2014-11-16 ] |
|
Linked upstream bugs were fixed in 5.6.14 and 5.6.17. |