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:
parent
621dff7307
commit
b2c6e397fc
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user