-
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
Data too long error on latin1/ascii collate #27676
Comments
There should be some problems with character set processing, we can see the following behavior:
|
@milkice233 @jingshanglu This is a known issue that is caused by some historical mistakes, as you can see from the official website:
Since TiDB incorrectly treats It is possible to be fixed if we do not consider the historical burden, but for the existing users that use I will mark it as 'won't fix' and close this issue. Thanks for reporting it anyway. /cc @zimulala |
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
Launch mysql client, connect to tidb and execute the following command
2. What did you expect to see? (Required)
TiDB should output
Query OK, 1 row affected (0.00 sec)
, just like what MySQL does.3. What did you see instead (Required)
TiDB returns an error:
ERROR 1406 (22001): Data too long for column 'col1' at row 1
4. What is your TiDB version? (Required)
The text was updated successfully, but these errors were encountered: