-
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
expression "ifnull(concat(NULL),'~')" show hex #51765
Comments
/found gs |
Unable to reproduce, are there any parameters that need to be configured? 1 row in set |
TiDB with
TiDB with
|
MySQL 8.3.0 with
|
Difference in output: 7,8c7,8
< Collation: utf8mb4_0900_ai_ci (255)
< Length: 4
---
> Collation: binary (63)
> Length: 1 |
The behavior is really a chaos. It's even not consistent internally in MySQL. For example, if you create a
Then
You can find that the collation of This behavior shows us that it's not easy to make it compatible with MySQL in TiDB, because TiDB expects to have an consistent behavior without considering whether its literal or not 🤦, and I think it sounds better/cleaner. |
Oops. I can fix this issue in constant folding specially 🤔 , though it sounds weird. |
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
I test v5.2.0 is ok ;
Starting from v5.3.0, is has been displayed as hex, including the latest v7.6.0
The text was updated successfully, but these errors were encountered: