-
Notifications
You must be signed in to change notification settings - Fork 6k
expression: fix the length of casting from INT/REAL/DECIMAL/.... to string | tidb-test=pr/2554 #62330
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
expression: fix the length of casting from INT/REAL/DECIMAL/.... to string | tidb-test=pr/2554 #62330
Conversation
Signed-off-by: ti-chi-bot <[email protected]>
@YangKeao This PR has conflicts, I have hold it. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## release-8.5 #62330 +/- ##
================================================
Coverage ? 57.1980%
================================================
Files ? 1777
Lines ? 631495
Branches ? 0
================================================
Hits ? 361203
Misses ? 246179
Partials ? 24113
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
/unhold |
Signed-off-by: Yang Keao <[email protected]>
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
[LGTM Timeline notifier]Timeline:
|
/retest |
1 similar comment
/retest |
/hold |
There is a bug reported by TiFlash test:
|
It's not related to TiFlash. |
Ref #62354 |
I'll also pick #62354 to this PR. |
Signed-off-by: Yang Keao <[email protected]>
/retest |
#62354 has been merged. /unhold |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: AilinKid, tangenta, windtalker The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest |
This is an automated cherry-pick of #61476
What problem does this PR solve?
Issue Number: close #61350
Problem Summary:
The length returned by TiDB is not compatible with MySQL. Sometimes it's too small so that the client may fail to allocate big enough buffer and cause panic/security issue. This PR modifies the logic of calculating the length, and make it compatible with MySQL for most of the cases.
What changed and how does it work?
Check List
Tests
Run the SQLs provided in #61350 and check the results are the same.
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.