[MDEV-4959] Join with const table produces incorrect query result Created: 2013-08-28 Updated: 2013-08-28 Resolved: 2013-08-28 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 5.5.33 |
| Fix Version/s: | 5.5.33 |
| Type: | Bug | Priority: | Major |
| Reporter: | Sergei Petrunia | Assignee: | Igor Babaev |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
In 5.5, revision 3589, we've had:
in revision 3860, we get
Note that the query that used to return zero records now returns two records. This is incorrect. |
| Comments |
| Comment by Sergei Petrunia [ 2013-08-28 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
The difference in make_join_select/add_not_null_conds. The optimizer used to add equality, but doesn't do it anymore. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Sergei Petrunia [ 2013-08-28 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-----
-----
----- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Sergei Petrunia [ 2013-08-28 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
The problem started to occur after this push: |