* src/odbc/ejabberd_odbc.erl: UTF-8 support for MySQL5 (EJAB-318).
SVN Revision: 869
This commit is contained in:
parent
8561ba614f
commit
884c8d531f
|
@ -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-01 Mickael Remond <mickael.remond@process-one.net>
|
2007-08-01 Mickael Remond <mickael.remond@process-one.net>
|
||||||
|
|
||||||
* src/mod_private.erl: Reduce memory consumption on user private
|
* src/mod_private.erl: Reduce memory consumption on user private
|
||||||
|
|
|
@ -272,6 +272,7 @@ mysql_connect(Server, DB, Username, Password) ->
|
||||||
case mysql_conn:start(Server, ?MYSQL_PORT, Username, Password, DB, NoLogFun) of
|
case mysql_conn:start(Server, ?MYSQL_PORT, Username, Password, DB, NoLogFun) of
|
||||||
{ok, Ref} ->
|
{ok, Ref} ->
|
||||||
erlang:monitor(process, Ref),
|
erlang:monitor(process, Ref),
|
||||||
|
mysql_conn:fetch(Ref, ["set names 'utf8';"], self()),
|
||||||
{ok, #state{db_ref = Ref, db_type = mysql}};
|
{ok, #state{db_ref = Ref, db_type = mysql}};
|
||||||
{error, Reason} ->
|
{error, Reason} ->
|
||||||
?ERROR_MSG("MySQL connection failed: ~p~n", [Reason]),
|
?ERROR_MSG("MySQL connection failed: ~p~n", [Reason]),
|
||||||
|
|
Loading…
Reference in New Issue