[MDEV-3799] Wrong result (NULLs instead of real values) with RIGHT JOIN in a FROM subquery and derived_merge=on Created: 2012-10-05 Updated: 2012-10-11 Resolved: 2012-10-11 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 5.5.27, 5.3.9 |
| Fix Version/s: | 5.5.28, 5.3.10 |
| Type: | Bug | Priority: | Major |
| Reporter: | Elena Stepanova | Assignee: | Oleksandr Byelkin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||
| Description |
|
Assigning it to Sanja because it's a regression introduced with a bugfix for The following test case
returns
on the affected versions, and
on unaffected versions. The latter is correct. Reproducible with MyISAM, Aria, InnoDB. Reproducible with the default optimizer switch as well as with optimizer_switch='derived_merge=on' only. EXPLAIN (with the default optimizer_switch):
|
| Comments |
| Comment by Oleksandr Byelkin [ 2012-10-09 ] |
|
Probably incorrectly detected ref_table in case of RIGHT JOIN. |
| Comment by Oleksandr Byelkin [ 2012-10-10 ] |
|
TABLE_LIST::get_real_join_table should take table corresponding to the field (not just first in join)... |
| Comment by Oleksandr Byelkin [ 2012-10-10 ] |
|
fix committed. |
| Comment by Oleksandr Byelkin [ 2012-10-11 ] |
|
pushed into 5.3 |