-
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: restore the field length of a string typed parameter value to the original one #8656
Conversation
/run-integration-ddl-test -tidb-test=pr/693 |
@zhouqiang-cl Would you please check
|
ok. I will check it |
/run-integration-ddl-test -tidb-test=pr/695 |
@zhouqiang-cl Thx! |
types/field_type.go
Outdated
DefaultTypeForValue(value, tp) | ||
if tp.Tp == mysql.TypeVarString { |
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.
Should we also check mysql.TypeEnum
, mysql.TypeSet
?
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.
Yes, we should. The updated PR should use a function to check whether or not the field length of the given value is variable.
… plan cache if its type is mysql.TypeVarString
/run-all-tests |
1 similar comment
/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
/run-all-tests tidb-test=pr/694 |
/run-integration-ddl-test |
/run-all-tests tidb-test=pr/694 |
/run-integration-ddl-test tidb-test=pr/694 |
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
What problem does this PR solve?
Fix #8644
What is changed and how it works?
Check List
Tests
Code changes
Side effects
Related changes
This change is