-
Notifications
You must be signed in to change notification settings - Fork 288
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
syncer(dm): support GBK replication #3990
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
This comment has been minimized.
This comment has been minimized.
/run-all-tests |
/run-dm-integration-test |
2 similar comments
/run-dm-integration-test |
/run-dm-integration-test |
/run-dm-integration-test |
1 similar comment
/run-dm-integration-test |
/run-dm-integration-test |
/run-dm-integration-test |
2 similar comments
/run-dm-integration-test |
/run-dm-integration-test |
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.
Rest LGTM
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.
rest LGTM
@@ -376,6 +379,35 @@ func GetServerCollationByStatusVars(statusVars []byte, idAndCollationMap map[int | |||
return idAndCollationMap[int(v)], err | |||
} | |||
|
|||
// GetCharsetCodecByStatusVars returns an encoding.Encoding to encode and decode original query if needed. | |||
func GetCharsetCodecByStatusVars(statusVars []byte) (encoding.Encoding, error) { |
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.
this func called GetCharsetCodecByStatusVars
but only return chartset code when chartset is gbk , this looks litte strange, maybe change a name?
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.
the comment says "returns ... if needed", we can return more codec if user wants
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.
ok i see
Codecov Report
Flags with carried forward coverage won't be shown. Click here to find out more. @@ Coverage Diff @@
## master #3990 +/- ##
================================================
- Coverage 57.0741% 55.3893% -1.6849%
================================================
Files 478 489 +11
Lines 56551 60416 +3865
================================================
+ Hits 32276 33464 +1188
- Misses 20978 23572 +2594
- Partials 3297 3380 +83 |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: fc8f585
|
/run-verify |
/run-verify |
What problem does this PR solve?
close #3774
What is changed and how it works?
_binary'x'
to insert GBK data from binlog, and add simple test.Also move some function logic together
Check List
Tests
Code changes
Side effects
Related changes
Release note