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
1 changed files with 1 additions and 1 deletions

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.