]> granicus.if.org Git - ejabberd/commitdiff
Set set utf8mb4 charset on mysql connection
authorChristophe Romain <christophe.romain@process-one.net>
Tue, 26 Jan 2016 12:47:24 +0000 (13:47 +0100)
committerChristophe Romain <christophe.romain@process-one.net>
Tue, 26 Jan 2016 12:47:24 +0000 (13:47 +0100)
src/ejabberd_odbc.erl

index d7b8fa83a0c576da227892d29f53c328552eb694..a15c66b5d29e86984b6890f8a15bd23f66840259 100644 (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.