Bug #115541 | The query result does not match the decimal type in and or query. | ||
---|---|---|---|
Submitted: | 8 Jul 2024 9:57 | Modified: | 8 Jul 2024 18:10 |
Reporter: | lei yue | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: Data Types | Severity: | S3 (Non-critical) |
Version: | 8.0 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[8 Jul 2024 9:57]
lei yue
[8 Jul 2024 10:28]
MySQL Verification Team
Hi Mr. vue, Thank you for your bug report. We managed to reproduce it in 8.0.38, 8.4.1 and 9.0.0. Verified as reported. Thanks again.
[8 Jul 2024 18:10]
Roy Lyseng
Posted by developer: This is not a bug. MySQL is documented to convert string values to double precision values when comparing them to integer or decimal values, and thus rounding errors may impact the result. The problem can be worked around with a CAST operator on the string value.