[MDEV-8626] Bad result set with expansions when using a prefix key Created: 2015-08-14 Updated: 2022-12-16 |
|
| Status: | Confirmed |
| Project: | MariaDB Server |
| Component/s: | Character Sets, Optimizer |
| Affects Version/s: | 5.5, 10.0, 10.1, 10.3, 10.4, 10.5, 10.6, 10.7, 10.8, 10.9, 10.10 |
| Fix Version/s: | 10.1, 10.3 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | upstream | ||
| Description |
|
This bug is very similar to MDEV-8625. The script with no index:
and the script with KEY(a):
correctly return two rows:
This script with KEY(a(1)):
erroneously returns only one row:
The problem happens because when building a search value for the prefix key lookup, the character combination 'ae' (which is equal to 'ä') is broken apart and only the leading letter 'a' is stored into the search value. |