-
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
expression, executor: allow insert strings with overflowed trailing spaces (#20987) #21282
expression, executor: allow insert strings with overflowed trailing spaces (#20987) #21282
Conversation
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
/run-all-tests |
@ichn-hu you're already a collaborator in bot's repo. |
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
/run-all-tests |
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
/merge |
Your auto merge job has been accepted, waiting for:
|
/merge |
Your auto merge job has been accepted, waiting for:
|
/merge |
Your auto merge job has been accepted, waiting for:
|
/run-all-tests |
@ti-srebot merge failed. |
/run-all-tests |
@ti-srebot merge failed. |
/run-all-tests |
cherry-pick #20987 to release-4.0
What problem does this PR solve?
Issue Number: close #10392
Problem Summary:
For now, TiDB will complain with error if string inserted are longer than
varchar
orchar
's lenght constraint with trailing spaces, however, as in MySQL's dochttps://dev.mysql.com/doc/refman/8.0/en/char.html
What is changed and how it works?
Make overflowed trailing spaces trimed, and report warning for
varchar
.Proposal: xxx
What's Changed:
How it Works:
Related changes
Check List
Tests
Side effects
N/A
Release note