mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Set set utf8mb4 charset on mysql connection
This commit is contained in:
parent
621dff7307
commit
b2c6e397fc
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user