Data truncation error occurs in update statement. #57650
Labels
affects-8.1
This bug affects the 8.1.x(LTS) versions.
affects-8.4
severity/moderate
sig/execution
SIG execution
type/bug
The issue is confirmed as a bug.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
MySQL and TIDB have different execution results in the above case.
The normal result in MySQL 8:
TiDB should also return the same result, but failed.
3. What did you see instead (Required)
In TiDB v8.1.1:
Afterwards, I wondered if the error was caused by predicate, so I constructed the same predicate using a select statement.
The following result is correct:
The predicate is the same, but the results of the select and update statements are different in TiDB.
4. What is your TiDB version? (Required)
Tidb v8.1.1
The text was updated successfully, but these errors were encountered: