25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-20 17:27:00 +01:00

Set set utf8mb4 charset on mysql connection

This commit is contained in:
Christophe Romain 2016-01-26 13:47:24 +01:00
parent 621dff7307
commit b2c6e397fc

View File

@ -618,7 +618,7 @@ mysql_connect(Server, Port, DB, Username, Password) ->
of
{ok, Ref} ->
p1_mysql_conn:fetch(
Ref, [<<"set names 'utf8';">>], self()),
Ref, [<<"set names 'utf8mb4' collate 'utf8mb4_bin';">>], self()),
{ok, Ref};
Err -> Err
end.