[MDEV-6841] test decimal math Created: 2014-10-06 Updated: 2020-08-31 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | None |
| Fix Version/s: | N/A |
| Type: | Task | Priority: | Major |
| Reporter: | Sergei Golubchik | Assignee: | Elena Stepanova |
| Resolution: | Unresolved | Votes: | 1 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||||||
| Description |
|
Even after all these years there is a steady stream of bugs in decimal math. Suggestion: RQG testing of the expression
where RQG randomly generates a and b, and the operation is one of +, One should try also very small numbers (0.00...{~50 times}...01) as well as |
| Comments |
| Comment by Elena Stepanova [ 2014-10-08 ] | |||||||
|
This query works okay in 5.5.40 candidate, but wrong in MySQL 5.5 (apparently that's the same problem as the one serg solved in the post-merge fix).
| |||||||
| Comment by Sergei Golubchik [ 2020-08-26 ] | |||||||
Correction0.0001 error margin is rather arbitrary. It should depend on operands and on the operation itself. Here, revised queries:
|