Bug #119081 | UPDATE with CASE/IFNULL expression produces unexpected error: Incorrect DECIMAL value: '0' for column '' at row -1 | ||
---|---|---|---|
Submitted: | 27 Sep 8:35 | Modified: | 29 Sep 17:33 |
Reporter: | ruifeng wang | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S3 (Non-critical) |
Version: | 8.0.43 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[27 Sep 8:35]
ruifeng wang
[29 Sep 17:33]
MySQL Verification Team
I verified the behavior but I do not believe this is a bug but let's wait for the optimizer team to confirm.
[2 Oct 7:12]
Roy Lyseng
Posted by developer: Looks like a minor bug in error reporting. An empty string is cast into a decimal value, which is not valid. Since this is an UPDATE statement and session is on strict mode, an error is issued. However, the error text could be more informative.