[MDEV-3165] LP:888456 - Wrong result with DISTINCT , ANY , subquery_cache=off , NOT NULL Created: 2011-11-10 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: | Timour Katchaounov (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
The following query: SELECT * incorrectly returns 8 28 when executed with semijoin=off and 8 28 otherwise. Repeatable in maria-5.3. Not repeatable in maria-5.2, mysql-5.5 EXPLAIN: id select_type table type possible_keys key key_len ref rows filtered Extra minimal switch: subquery_cache=off revision-id: <email address hidden> test case: CREATE TABLE t1 ( a int NOT NULL) ; CREATE TABLE t2 ( a int) ; CREATE TABLE t3 ( a int, KEY (a)) ; SELECT * |
| Comments |
| Comment by Oleksandr Byelkin [ 2011-11-29 ] |
|
Re: Wrong result with DISTINCT , ANY , subquery_cache=off , NOT NULL === modified file 'sql/opt_range.cc' + seen_first_key= FALSE; But there is 2 strange things: |
| Comment by Timour Katchaounov (Inactive) [ 2011-12-08 ] |
|
Re: Wrong result with DISTINCT , ANY , subquery_cache=off , NOT NULL |
| Comment by Timour Katchaounov (Inactive) [ 2011-12-08 ] |
|
Re: Wrong result with DISTINCT , ANY , subquery_cache=off , NOT NULL CREATE TABLE t1 ( a int NOT NULL) ; CREATE TABLE t3 ( a int, KEY (a)) ; explain select (select t3.a from t3 where t3.a >= t1.a group by t3.a) from t1; |
| Comment by Timour Katchaounov (Inactive) [ 2011-12-08 ] |
|
Re: Wrong result with DISTINCT , ANY , subquery_cache=off , NOT NULL |
| Comment by Rasmus Johansson (Inactive) [ 2011-12-08 ] |
|
Launchpad bug id: 888456 |