ddl: fix TypeBit default value#9467
Conversation
Signed-off-by: Lloyd-Pottiger <yan1579196623@gmail.com>
|
Why we need to update Poco here? |
Check pingcap/poco#22 |
| // TODO: We shall use something like `orig_default_bit`, which will never change once created, | ||
| // rather than `default_bit`, which could be altered. | ||
| // See https://github.com/pingcap/tidb/issues/17641 and https://github.com/pingcap/tidb/issues/17642 | ||
| const auto & bit_value = default_bit_value; | ||
| // TODO: There might be cases that `orig_default` is not null but `default_bit` is null, | ||
| // i.e. bit column added with an default value but later modified to another. | ||
| // For these cases, neither `orig_default` (may get corrupted) nor `default_bit` (modified) is correct. | ||
| // This is a bug anyway, we choose to make it simple, i.e. use `default_bit`. |
There was a problem hiding this comment.
origin_default_bit_value is added since which version?
Signed-off-by: Lloyd-Pottiger <yan1579196623@gmail.com>
Signed-off-by: Lloyd-Pottiger <yan1579196623@gmail.com>
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: CalvinNeo, JaySon-Huang The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[LGTM Timeline notifier]Timeline:
|
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
|
In response to a cherrypick label: new pull request created to branch |
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
|
In response to a cherrypick label: new pull request created to branch |
|
/cherry-pick release-7.1 |
|
/cherry-pick release-6.5 |
This comment was marked as resolved.
This comment was marked as resolved.
|
@Lloyd-Pottiger: failed to apply #9467 on top of branch "release-6.5": DetailsIn 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. |
What problem does this PR solve?
Issue Number: close #9461
Problem Summary:
What is changed and how it works?
Fix two problems:
origin_default_bit_value.Check List
Tests
Side effects
Documentation
Release note