[MDEV-12486] Incorrect results with prefix_index_cluster_optimization enabled Created: 2017-04-11 Updated: 2021-04-27 Resolved: 2020-09-01 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer, Storage Engine - InnoDB |
| Affects Version/s: | 10.1, 10.1.22, 10.2 |
| Fix Version/s: | 10.1.48, 10.2.35, 10.3.26, 10.4.16, 10.5.7 |
| Type: | Bug | Priority: | Major |
| Reporter: | Hans Kristian Rosbach | Assignee: | Marko Mäkelä |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
RHEL7, custom built mariadb using GCC 6.3 |
||
| Issue Links: |
|
||||||||||||||||||||||||
| Description |
|
The following query is supposed to return two rows, containing '1' and '3', but it only returns '1'.
Using extended explain however, it correctly tells me it is supposed to return 2 rows. This is from a wordpress database. 'blog_id' is a bigint(20) primary key. 'domain' and 'path' are: varchar(200) utf8mb4_unicode_ci. explain extended SELECT blog_id FROM wp_blogs WHERE domain IN ('domain.no') AND path IN ( '/fondsinvesteringer/', '/' );
show columns from wp_blogs;
|
| Comments |
| Comment by Elena Stepanova [ 2017-04-11 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Thanks for the report.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2020-08-27 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||
|
In |