-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistent Behavior When Comparing CHAR Column with Binary Values #58810
Comments
In MySQL, both queries would return an error. mysql> select * from t where a >= 0xb6fe and a <= 0xb6fe;
ERROR 3854 (HY000): Cannot convert string '\xB6\xFE' from binary to utf8mb4
mysql> select * from t where a between 0xb6fe and 0xb6fe;
ERROR 3854 (HY000): Cannot convert string '\xB6\xFE' from binary to utf8mb4
mysql>
|
May be related to this tidb/pkg/planner/core/expression_rewriter.go Lines 2211 to 2218 in 6463db6
|
/label sig/planner |
@dash12653: The label(s) In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
Seems for
This is quite corner. Adjusting to minor. |
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
Both sql statements return the same result.
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
master
The text was updated successfully, but these errors were encountered: