-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Ability to set collation on connection #157
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
Comments
By default, we don't set any collation. The MySQL Handshake supports setting a chracter set, but not a collation. |
Oh yes, the driver sets a collation |
I must admit that I have no Idea what this actually does... I assume that the collation also determines the character set used. For example utf8_general_ci also sets the character set to UTF-8. |
Just going from memory. A character set has a default collation. If you |
We could fix this with an exported var in the driver: But it will need some documentation to clarify that setting it to a different collation does not change existing connections (which is hard to reason about because of I think that's viable and desirable. What do you think, Julien? |
By default, you set utf8_general_ci. However, for better language support, utf8_unicode_ci is more appropriate. It would be nice if you could specify the collation along with the charset.
The text was updated successfully, but these errors were encountered: