[MDEV-2534] LP:707914 - Wrong result with join_cache_level=7 , (flat, BNLH join) Created: 2011-01-26 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 | ||
| Reporter: | Philip Stoev (Inactive) | Assignee: | Igor Babaev |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
Somewhat similar to bug 707827 , but shows up even with the default value for join_buffer_size. The query returns rows for which the ON condition does not match. Query: SELECT STRAIGHT_JOIN * FROM t1 JOIN t2 FORCE KEY (f10) ON t1.f3 AND t2.f10 = t1.f11 ORDER BY t1.f1; (STRAIGHT_JOIN and FORCE KEY are only in order to fix the execution plan) EXPLAIN: id select_type table type possible_keys key key_len ref rows Extra Test case: --source include/have_innodb.inc CREATE TABLE t2 ( f2 int(11), f10 varchar(1), KEY (f10) ) ; CREATE TABLE t1 ( f1 int(11), f3 int(11), f11 varchar(1) ) ENGINE=InnoDB; SELECT STRAIGHT_JOIN * FROM t1 JOIN t2 FORCE KEY (f10) ON t1.f3 AND t2.f10 = t1.f11 ORDER BY t1.f1; |
| Comments |
| Comment by Igor Babaev [ 2011-01-28 ] |
|
Re: Wrong result with join_cache_level=7 , (flat, BNLH join) |
| Comment by Rasmus Johansson (Inactive) [ 2011-12-13 ] |
|
Launchpad bug id: 707914 |