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

Unexpected behavior in UPDATE statement #32583

Open
where2me opened this issue Feb 23, 2022 · 0 comments
Open

Unexpected behavior in UPDATE statement #32583

where2me opened this issue Feb 23, 2022 · 0 comments
Labels
severity/moderate sig/transaction SIG:Transaction type/bug This issue is a bug.

Comments

@where2me
Copy link

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

DROP TABLE IF EXISTS t0;
CREATE TABLE t0 (c0 TEXT);
INSERT INTO t0 VALUES('a');
UPDATE t0 SET c0 = 1 WHERE true<<t0.c0;

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

I try the same statements in MySQL, where the UPDATE statement succeeded to update the value.

3. What did you see instead (Required)

mysql> UPDATE t0 SET c0 = 1 WHERE true<<t0.c0;
ERROR 1292 (22007): Truncated incorrect INTEGER value: 'a'

4. What is your TiDB version? (Required)

mysql> SELECT tidb_version();
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| tidb_version() |
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Release Version: v5.4.0
Edition: Community
Git Commit Hash: 55f3b24
Git Branch: heads/refs/tags/v5.4.0
UTC Build Time: 2022-01-25 08:39:26
GoVersion: go1.16.4
Race Enabled: false
TiKV Min Version: v3.0.0-60965b006877ca7234adaced7890d7b029ed1306
Check Table Before Drop: false |
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)

@where2me where2me added the type/bug This issue is a bug. label Feb 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity/moderate sig/transaction SIG:Transaction type/bug This issue is a bug.
Projects
None yet
Development

No branches or pull requests

2 participants