[MDEV-2528] LP:823301 - Wrong result with index_merge / sort_union and LEFT JOIN Created: 2011-08-09 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: | Critical |
| Reporter: | Philip Stoev (Inactive) | Assignee: | Igor Babaev |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
The following query SELECT * returns 4 instead of 5 rows when executed with index_merge / sort_union . Explain: id select_type table type possible_keys key key_len ref rows Extra test case: CREATE TABLE t1 ( b int, c int NOT NULL , d int, e int, KEY (e), PRIMARY KEY (c), KEY (e,c,d)) ; CREATE TABLE t2 ( a int) ; SELECT * bzr version-info: revision-id: <email address hidden> Reproducible in maria-5.3, Not reproducible in maria-5.2, mysql-5.5 |
| Comments |
| Comment by Philip Stoev (Inactive) [ 2011-09-09 ] | |||||||||||||||||||||||||||
|
Re: Wrong result with index_merge / sort_union and LEFT JOIN CREATE TABLE t1 ( a int NOT NULL , b int, c varchar(32), KEY (c,b), PRIMARY KEY (a)) ; SELECT * explain:
incorrect result set:
expected result set:
bzr version-info | |||||||||||||||||||||||||||
| Comment by Rasmus Johansson (Inactive) [ 2011-12-13 ] | |||||||||||||||||||||||||||
|
Launchpad bug id: 823301 |