Bug #103161 | The return value is different after adding a normal index | ||
---|---|---|---|
Submitted: | 31 Mar 2021 6:57 | Modified: | 31 Mar 2021 7:40 |
Reporter: | Guo Wenxuan | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: DML | Severity: | S2 (Serious) |
Version: | 8.0.23 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[31 Mar 2021 6:57]
Guo Wenxuan
[31 Mar 2021 7:40]
MySQL Verification Team
Hello xuan wen, Thank you for the report and test case. Verified as described with 8.0.23 build. regards, Umesh
[8 Apr 2021 8:12]
Erlend Dahl
It looks like the where clause in the second statement gets optimized away because collation_connection (default utf8mb4_0900_ai_ci) is case insensitive (hence "U" = "u"). Forcing the collation makes the 2nd select work: select * from t1 where col1 between "U" collate utf8mb4_bin and "u";