Skip to content
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

latin1 collation is failing to insert value '0xf6' #35213

Closed
ramanich1 opened this issue Jun 7, 2022 · 1 comment
Closed

latin1 collation is failing to insert value '0xf6' #35213

ramanich1 opened this issue Jun 7, 2022 · 1 comment
Labels
severity/moderate sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.

Comments

@ramanich1
Copy link
Collaborator

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

CREATE TABLE t2 (a CHAR(5) CHARACTER SET latin1 COLLATE latin1_bin);
INSERT INTO t2 VALUES (0xf6);

2. What did you expect to see? (Required)

mysql>  INSERT INTO t2 VALUES (0xf6);
Query OK, 1 row affected (0.00 sec)

3. What did you see instead (Required)

mysql>  INSERT INTO t2 VALUES (0xf6);
ERROR 1366 (HY000): Incorrect string value '\xF6' for column 'a'

4. What is your TiDB version? (Required)

+-----------------------------------------------+
| version()                                     |
+-----------------------------------------------+
| 5.7.25-TiDB-v6.1.0-alpha-482-g81a852077-dirty |
+-----------------------------------------------+
@ramanich1 ramanich1 added the type/bug The issue is confirmed as a bug. label Jun 7, 2022
@Defined2014
Copy link
Contributor

Defined2014 commented Jun 8, 2022

Pls update to the newest TiDB, the insert should work fine, but it's an invalid character in TiDB, ref #18955

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity/moderate sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.
Projects
None yet
Development

No branches or pull requests

3 participants