You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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);
/* init */ insert into t values('abc');
mysql> update t set a = 'def' where a+1;
mysql> select * from t;
2. What did you expect to see? (Required)
In MySQL 8.0.26
mysql> update t set a = 'def' where a+1;
Query OK, 1 row affected (0.13 sec)
Rows matched: 1 Changed: 1 Warnings: 0
mysql> select * from t;
+------+
| a |
+------+
| def |
+------+
1 row in set (0.00 sec)
3. What did you see instead (Required)
mysql> update t set a = 'def' where a + 1;
ERROR 1292 (22007): Truncated incorrect INTEGER value: 'abc'
mysql> select * from t;
+------+
| a |
+------+
| abc |
+------+
1 row in set (0.00 sec)
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)
The text was updated successfully, but these errors were encountered:
TrocTool
changed the title
arithmetical operation on TEXT column has inconsistent results in SELECT and UPDATE
unexpected error when apply arithmetical operation on TEXT column
Sep 23, 2021
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
In MySQL 8.0.26
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
The text was updated successfully, but these errors were encountered: