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

Char data type expression is not compatible with MYSQL 8.0 #53927

Open
dlyixue opened this issue Jun 11, 2024 · 0 comments
Open

Char data type expression is not compatible with MYSQL 8.0 #53927

dlyixue opened this issue Jun 11, 2024 · 0 comments
Labels
compatibility-mysql8 This is a compatibility issue with MySQL 8.0(but NOT 5.7) severity/moderate sig/execution SIG execution type/bug The issue is confirmed as a bug.

Comments

@dlyixue
Copy link

dlyixue commented Jun 11, 2024

Bug Report

May I ask why the expression ' 'reports an error, however the expression ! ' ' is right ?
It is not compatible with MYSQL 8.0.
Thank for your reply.
Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

CREATE TABLE t0(c0 BLOB , c1 FLOAT UNIQUE );
INSERT INTO t0(c0, c1) VALUES ('abc', 0.123);
INSERT INTO t0(c0, c1) VALUES ('efg', 0.456);

UPDATE t0 SET c0='xyz' WHERE ' ';
UPDATE t0 SET c0='xyz' WHERE !' ';

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

In MySQL

mysql> UPDATE t0 SET c0='xyz' WHERE ' ';
Query OK, 0 rows affected (0.01 sec)
Rows matched: 0  Changed: 0  Warnings: 0

mysql> UPDATE t0 SET c0='xyz' WHERE !' ';
Query OK, 2 rows affected, 1 warning (0.02 sec)
Rows matched: 2  Changed: 2  Warnings: 1

3. What did you see instead (Required)

mysql> UPDATE t0 SET c0='xyz' WHERE ' ';
ERROR 1292 (22007): Truncated incorrect DOUBLE value: ''
mysql> UPDATE t0 SET c0='xyz' WHERE !' ';
Query OK, 2 rows affected (0.01 sec)
Rows matched: 2  Changed: 2  Warnings: 0

4. What is your TiDB version? (Required)

Release Version: v8.1.0
Edition: Community
Git Commit Hash: 945d07c
Git Branch: HEAD
UTC Build Time: 2024-05-21 03:51:57
GoVersion: go1.21.10
Race Enabled: false
Check Table Before Drop: false
Store: tikv

@dlyixue dlyixue added the type/bug The issue is confirmed as a bug. label Jun 11, 2024
@jebter jebter added compatibility-mysql8 This is a compatibility issue with MySQL 8.0(but NOT 5.7) and removed may-affects-5.4 This bug maybe affects 5.4.x versions. may-affects-6.1 may-affects-6.5 may-affects-7.1 may-affects-7.5 may-affects-8.1 labels Jun 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compatibility-mysql8 This is a compatibility issue with MySQL 8.0(but NOT 5.7) severity/moderate sig/execution SIG execution type/bug The issue is confirmed as a bug.
Projects
None yet
Development

No branches or pull requests

3 participants