25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-24 17:29:28 +01:00

* src/odbc/ejabberd_odbc.erl: UTF-8 support for MySQL5 (EJAB-318).

SVN Revision: 868
This commit is contained in:
Mickaël Rémond 2007-08-12 15:39:01 +00:00
parent b1b348e184
commit 915d94b0dc
2 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2007-08-12 Mickael Remond <mickael.remond@process-one.net>
* src/odbc/ejabberd_odbc.erl: UTF-8 support for MySQL5 (EJAB-318).
2007-08-09 Alexey Shchepin <alexey@sevcom.net>
* doc/guide.tex: Minor update (thanks to Sergei Golovan)

View File

@ -279,6 +279,7 @@ mysql_connect(Server, Port, DB, Username, Password) ->
case mysql_conn:start(Server, Port, Username, Password, DB, NoLogFun) of
{ok, Ref} ->
erlang:monitor(process, Ref),
mysql_conn:fetch(Ref, ["set names 'utf8';"], self()),
{ok, #state{db_ref = Ref, db_type = mysql}};
{error, Reason} ->
?ERROR_MSG("MySQL connection failed: ~p~n", [Reason]),