[MDEV-3097] LP:675516 - wrong result with join_cache_level = 4, join_cache_hashed, join_cache_incremental, outer_join_with_cache Created: 2010-11-15 Updated: 2015-02-02 Resolved: 2012-10-04 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Philip Stoev (Inactive) | Assignee: | Igor Babaev |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
The following query SELECT STRAIGHT_JOIN table1.f7 FROM G AS table1 LEFT JOIN E AS table2 RIGHT JOIN M AS table3 ON table2.f8 = table3.f8 JOIN G AS table4 ON table4.f8 ON table1.f6 = table2.f10 WHERE table2.f7 IS NULL ; returns "7" when executed with (incremental, BNLH join), (flat, BNL join) and (incremental, BNL join) and no rows when executed with join_cache_level=0. Test case: --source include/have_innodb.inc SET SESSION storage_engine='InnoDB'; DROP TABLE IF EXISTS M; DROP TABLE IF EXISTS G; DROP TABLE IF EXISTS E; SELECT STRAIGHT_JOIN table1.f7 FROM G AS table1 LEFT JOIN E AS table2 RIGHT JOIN M AS table3 ON table2.f8 = table3.f8 JOIN G AS table4 ON table4.f8 ON table1.f6 = table2.f10 WHERE table2.f7 IS NULL ; |
| Comments |
| Comment by Philip Stoev (Inactive) [ 2010-11-15 ] |
|
Re: wrong result with join_cache_level = 4, join_cache_hashed, join_cache_incremental, outer_join_with_cache |
| Comment by Rasmus Johansson (Inactive) [ 2011-12-13 ] |
|
Launchpad bug id: 675516 |