-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
types: fix a bug in decimal multiplication #7208
Conversation
@winkyao |
/run-all-tests |
@coocood In MySQL, the ADD2 is only used in decimal_mul, I think we should keep the logic. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@AndreMouche maybe coprocess need fix this question too? |
no,we needn't @lysu |
What have you changed? (mandatory)
Before this PR, we got the result from
select 0.5999991229316*0.918755041726043
is not correct:This is because we don't handle the overflow in DecimalMul, after this PR, we got:
What is the type of the changes? (mandatory)
How has this PR been tested? (mandatory)
UT
Does this PR affect documentation (docs/docs-cn) update? (mandatory)
NO
Does this PR affect tidb-ansible update? (mandatory)
NO
Does this PR need to be added to the release notes? (mandatory)
yes
Refer to a related PR or issue link (optional)
Benchmark result if necessary (optional)
Add a few positive/negative examples (optional)