-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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 the bug about the wrong query result for decimal type #22507
Conversation
question: does mysql support comma number? @jyz0309 and should we break compatibility to support this - -? |
oh, I didn't notice this, my bad-.- |
Signed-off-by: jyz0309 <45495947@qq.com>
Signed-off-by: jyz0309 <45495947@qq.com>
LGTM |
@XuHuaiyu PTAL |
Signed-off-by: jyz0309 <45495947@qq.com>
/run-all-tests |
/run-all-tests |
/merge |
@jyz0309: It seems you want to merge this PR, I will help you trigger all the tests: /run-all-tests You only need to trigger If you have any questions about the PR merge process, please refer to pr process. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
@jyz0309: In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
/run-integration-compatibility-test |
2 similar comments
/run-integration-compatibility-test |
/run-integration-compatibility-test |
/run-all-tests |
/run-tics-test |
@XuHuaiyu PTAL |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: a2ea26f
|
/run-integration-copr-test |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
cherry pick to release-4.0 in PR #23196 |
What problem does this PR solve?
Issue Number: close #22496
Problem Summary:
MySQL [test]> create table t12(d decimal(15,2));
MySQL [test]> insert into t12 values('1,999.00');
MySQL [test]> select * from t12;
+------+
| d |
+------+
| 1.00 |
+------+
1 row in set (0.00 sec)
The select about decimal type show the wrong result.
What is changed and how it works?
What's Changed:
update the
FromString
function for MyDecimal for the situation like"1,999.00"
and"1,999,999.00"
Related changes
Check List
Tests
Release note