[MDEV-3163] LP:730466 - Wrong result with OR + Range checked for each record + NOT NULL Created: 2011-03-07 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 * returns no rows when executed with jkl = 0 and "Range checked for each record (index map: 0x1)", even though there is 1 row that matches the WHERE expression and which is returned by other query plans and jkl levels. Test case: SET SESSION join_cache_level=0 CREATE TABLE t2 ( f2 int NOT NULL , f3 int NOT NULL , KEY (f3)) ; SELECT * FROM t1 STRAIGHT_JOIN t2 ON t2.f2 = t1.f1 WHERE t1.f10 OR t1.f1 OR t1.f3 AND t1.f10 AND t1.f1 = t2.f3; explain: ---
---
--- bzr version-info: revision-id: <email address hidden> |
| Comments |
| Comment by Timour Katchaounov (Inactive) [ 2011-03-09 ] |
|
Re: Wrong result with OR + Range checked for each record + NOT NULL Both this, and BUG#729067 require STRAIGHT_JOIN |
| Comment by Igor Babaev [ 2011-03-12 ] |
|
Re: Wrong result with OR + Range checked for each record + NOT NULL |
| Comment by Rasmus Johansson (Inactive) [ 2011-12-13 ] |
|
Launchpad bug id: 730466 |