[MDEV-24211] FULLTEXT search does not honor case sensitive _bin collations Created: 2020-11-14 Updated: 2023-04-27 |
|
| Status: | Stalled |
| Project: | MariaDB Server |
| Component/s: | Character Sets, Full-text Search |
| Affects Version/s: | 10.0, 10.1, 10.3.25, 10.4.14, 10.5.5, 10.2, 10.3, 10.4, 10.5 |
| Fix Version/s: | 10.4, 10.5 |
| Type: | Bug | Priority: | Major |
| Reporter: | Lau | Assignee: | Thirunarayanan Balathandayuthapani |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
This issue seems to exist in all versions of MariaDB and all Versions of MySQL. Run the following SQL script:
I expect the last SELECT COUNT(*) query to return 1, but instead it returns 0. The query works, when the collation is changed from latin1_bin to latin1_general_cs. However, since there are no utf8mb4_general_cs (or utf8_general_cs) or similar collations, this will definitely not work with the UTF-8 character set, which is the defacto standard nowadays. |
| Comments |
| Comment by Alice Sherepa [ 2020-11-16 ] | |||||||||||||||||||||||||||||||||||||||||||
|
Thanks for the report! Repeatable on 10.0-10.5 with InnoDB.
| |||||||||||||||||||||||||||||||||||||||||||
| Comment by Thirunarayanan Balathandayuthapani [ 2020-12-15 ] | |||||||||||||||||||||||||||||||||||||||||||
|
During alter table rebuild, InnoDB does convert all token to lower case.
InnoDB should avoid the conversion of lower case during alter. Is there any way to find binary collation from charset ? |