25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +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 of
{ok, Ref} -> {ok, Ref} ->
p1_mysql_conn:fetch( p1_mysql_conn:fetch(
Ref, [<<"set names 'utf8';">>], self()), Ref, [<<"set names 'utf8mb4' collate 'utf8mb4_bin';">>], self()),
{ok, Ref}; {ok, Ref};
Err -> Err Err -> Err
end. end.