-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Set utf8mb4 as the default charset on MySQL if CHARSET is unset #12563
Set utf8mb4 as the default charset on MySQL if CHARSET is unset #12563
Conversation
MySQL in its infinite wisdom determines that UTF8 does not mean UTF8. Our install scripts know about this and will set CHARSET to utf8mb4 if we users choose this but... users who do not explicitly set this variable will default to utf8mb3 without knowing it. This PR changes the unset CHARSET value to utf8mb4 if users choose to use mysql. Signed-off-by: Andrew Thornton <art27@cantab.net>
as this just makes the code match the documentation I'm removing the breaking label and adding the bug label |
Technically that makes it backportable too. |
I don't think we should back port this one. |
Codecov Report
@@ Coverage Diff @@
## master #12563 +/- ##
=======================================
Coverage 43.42% 43.43%
=======================================
Files 643 643
Lines 71157 71159 +2
=======================================
+ Hits 30903 30907 +4
+ Misses 35243 35240 -3
- Partials 5011 5012 +1
Continue to review full report at Codecov.
|
MySQL in its infinite wisdom determines that UTF8 does not
mean UTF8. Our install scripts know about this and will set
CHARSET to utf8mb4 if we users choose this but... users who
do not explicitly set this variable will default to utf8mb3
without knowing it.
This PR changes the unset CHARSET value to utf8mb4 if users
choose to use mysql.
Signed-off-by: Andrew Thornton art27@cantab.net