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

TEXT type column causes error result in WHERE clause #28103

Open
TrocTool opened this issue Sep 16, 2021 · 0 comments
Open

TEXT type column causes error result in WHERE clause #28103

TrocTool opened this issue Sep 16, 2021 · 0 comments
Labels
severity/moderate sig/execution SIG execution type/bug The issue is confirmed as a bug.

Comments

@TrocTool
Copy link

TrocTool commented Sep 16, 2021

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

/* init */ drop table if exists t;
/* init */ create table t(a TEXT);
/* int */ insert into t values ('abc');

mysql> update t set a = 'def' where a;

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

results in MySQL 8.0.26:

mysql> update t set a = 'def' where a;
Query OK, 0 rows affected (0.00 sec)
Rows matched: 0  Changed: 0  Warnings: 0

3. What did you see instead (Required)

mysql> update t set a = 'def' where a;
ERROR 1292 (22007): Truncated incorrect INTEGER value: 'abc'

4. What is your TiDB version? (Required)

mysql> select version();
+--------------------+
| version()          |
+--------------------+
| 5.7.25-TiDB-v5.2.1 |
+--------------------+
1 row in set (0.00 sec)
@TrocTool TrocTool added the type/bug The issue is confirmed as a bug. label Sep 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity/moderate sig/execution SIG execution type/bug The issue is confirmed as a bug.
Projects
None yet
Development

No branches or pull requests

2 participants