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

Fail to execute query in tidb but succeeded in MySQL #56464

Open
Nickelth opened this issue Oct 7, 2024 · 0 comments
Open

Fail to execute query in tidb but succeeded in MySQL #56464

Nickelth opened this issue Oct 7, 2024 · 0 comments
Labels
severity/moderate sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.

Comments

@Nickelth
Copy link

Nickelth commented Oct 7, 2024

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

CREATE TABLE `t43` (`a` char(5) CHARACTER SET latin1);

INSERT INTO `t43` VALUES (x'f6');

SELECT t43.a FROM  t43 WHERE (('uWHghV')REGEXP(t43.a));

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

Query executed successfully.

3. What did you see instead (Required)

mysql> SELECT t43.a FROM  t43 WHERE (('uWHghV')REGEXP(t43.a));
ERROR 1105 (HY000): invalid input value: FromUtf8Error { bytes: [246], error: Utf8Error { valid_up_to: 0, error_len: Some(1) } }

4. What is your TiDB version? (Required)

Release Version: v8.4.0-alpha-325-g74034d4ac2
Edition: Community
Git Commit Hash: 74034d4ac243b3c14dbf5f8a9edb92e740da4212
Git Branch: master
UTC Build Time: 2024-10-06 19:04:12
GoVersion: go1.22.5
Race Enabled: false
Check Table Before Drop: false
Store: tikv 
@Nickelth Nickelth added the type/bug The issue is confirmed as a bug. label Oct 7, 2024
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

2 participants