Skip to content

Add support for setting the encoding and collation #54

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

minusbat
Copy link

Simple changes to allow the encoding and collation attributes for mysql2 to be set on the fluent plugin.

This is necessary to enable the writing of utf8mb4 data into mysql out of fluent, as otherwise the connection defaults to utf8 and the conversion fails. You need this to support emoji for example, or any other characters outside of 3 byte UTF-8.

ingresso-pete and others added 2 commits March 16, 2018 22:27
Simply add these to the config variables and pass them
down to mysql2 along with all the rest.
…config

Add support for setting the enconding and collation
@toyama0919
Copy link
Collaborator

@minusbat
Mysql2::Client have collation option?
I could not find this option.

https://github.com/brianmario/mysql2

@minusbat
Copy link
Author

Ah, apparently I imagined that! It does have encoding though, and the patch works. Possibly should remove the collation option if its not actually supported by the mysql2 client library.

@toyama0919
Copy link
Collaborator

Possibly should remove the collation option if its not actually supported by the mysql2 client library.

What is the case when it is support?

@toyama0919
Copy link
Collaborator

ref: #53

@micdobro
Copy link

What is preventing this from entering the package? It's 2024 and this little thing breaks scenarios as soon as an emoji flows into the context.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants