Skip to content

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