Bug #101883 | Index is not using if we are using the wrong type in WHERE condition | ||
---|---|---|---|
Submitted: | 6 Dec 2020 19:14 | Modified: | 8 Dec 2020 13:06 |
Reporter: | Mikhail Balashov | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: Data Types | Severity: | S3 (Non-critical) |
Version: | 8 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | INDEX |
[6 Dec 2020 19:14]
Mikhail Balashov
[8 Dec 2020 13:06]
MySQL Verification Team
Hi Mr. Balashov, Thank you for your bug report. However, this is not a bug. An index can not be sorted, both as a string or as an integer. Simply, the sorting rules are totally, totally incompatible. For what you want to achieve you need two columns with separate indices. Not a bug.