Skip to content
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

variable: Change the default value of charset/collation to utfbmb4/utf8mb4_bin #7198

Merged
merged 5 commits into from
Aug 10, 2018
Merged

variable: Change the default value of charset/collation to utfbmb4/utf8mb4_bin #7198

merged 5 commits into from
Aug 10, 2018

Conversation

shenli
Copy link
Member

@shenli shenli commented Jul 31, 2018

What have you changed? (mandatory)

Change the default value of charset/collation to utfbmb4/utf8mb4_bin.
TiDB does not support Latin charset now. So change them to utf8mb4 to avoid potential issues.

Fix #7046

What is the type of the changes? (mandatory)

  • Improvement (non-breaking change which is an improvement to an existing feature)

How has this PR been tested? (mandatory)

Exists tests.

Does this PR affect documentation (docs/docs-cn) update? (mandatory)

Yes

Does this PR affect tidb-ansible update? (mandatory)

No

Does this PR need to be added to the release notes? (mandatory)

Yes

release note:
Change the default value of charset/collation related variable to utfbmb4/utf8mb4_bin.

Refer to a related PR or issue link (optional)

#7046

Benchmark result if necessary (optional)

No

Add a few positive/negative examples (optional)

No

@shenli shenli added type/compatibility release-note Denotes a PR that will be considered when it comes time to generate release notes. labels Jul 31, 2018
zz-jason
zz-jason previously approved these changes Jul 31, 2018
Copy link
Member

@zz-jason zz-jason left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

jackysp
jackysp previously approved these changes Jul 31, 2018
Copy link
Member

@jackysp jackysp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jackysp
Copy link
Member

jackysp commented Jul 31, 2018

/run-all-tests

@zimulala zimulala added the status/LGT2 Indicates that a PR has LGTM 2. label Jul 31, 2018
@coocood
Copy link
Member

coocood commented Jul 31, 2018

Why not utf8 and utf8_bin?
There are many places where we use uft8 as default charset.

Copy link
Member

@coocood coocood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not utf8 and utf8_bin?

@shenli
Copy link
Member Author

shenli commented Aug 1, 2018

There is no difference between utf8 and utf8mb4 in golang.
utf8mb4 is the recommended charset. See: https://medium.com/@adamhooper/in-mysql-never-use-utf8-use-utf8mb4-11761243e434
@coocood

@shenli
Copy link
Member Author

shenli commented Aug 1, 2018

/run-unit-test

…f8mb4_bin

TiDB does not support latin charset now. So change them to utf8mb4 to
avoid potential issues.
Change the default charset/collation from utf8mb4 to utf8.
@shenli shenli dismissed stale reviews from jackysp and zz-jason via 9bec0ac August 8, 2018 08:18
@shenli
Copy link
Member Author

shenli commented Aug 8, 2018

@coocood PTAL

@coocood
Copy link
Member

coocood commented Aug 9, 2018

LGTM

@coocood coocood removed the status/DNM label Aug 9, 2018
@shenli
Copy link
Member Author

shenli commented Aug 9, 2018

/run-unit-test

@zz-jason
Copy link
Member

zz-jason commented Aug 9, 2018

/run-all-tests

@zz-jason zz-jason merged commit 3e8815f into pingcap:master Aug 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note Denotes a PR that will be considered when it comes time to generate release notes. status/LGT2 Indicates that a PR has LGTM 2. type/compatibility
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants