Bug #116250 | Update statement reports error 'Truncated incorrect DOUBLE value' | ||
---|---|---|---|
Submitted: | 27 Sep 2024 6:59 | Modified: | 27 Sep 2024 11:40 |
Reporter: | Jingqi Tian (OCA) | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S3 (Non-critical) |
Version: | 8.0 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[27 Sep 2024 6:59]
Jingqi Tian
[27 Sep 2024 8:08]
MySQL Verification Team
Hello Jingqi Tian, Thank you for the report and test case. regards, Umesh
[27 Sep 2024 11:40]
Roy Lyseng
Posted by developer: When join order varies, expressions will be evaluated in different order. With join order (t1, t2), the optimizer evaluates the predicate "col1 = 1" first, which aborts execution and reports the truncation error. With other join order, the problematic predicate is never evaluated because it is already determined that the overall condition is false. Hence, this is not an error. To avoid such problems, try to make sure that comparisons are with compatible data types.