git.schokokeks.org
Repositories
Help
Report an Issue
keks-overlay.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
60d29f9
Branches
Tags
master
keks-overlay.git
net-im
ejabberd
files
ejabberd-1.1.3-mysql-connect-utf8.patch
Upgrade to ejabberd-1.1.3
Lars Strojny
commited
60d29f9
at 2007-03-18 16:29:14
ejabberd-1.1.3-mysql-connect-utf8.patch
Blame
History
Raw
diff -Naur ejabberd-1.1.1.orig/src/odbc/ejabberd_odbc.erl ejabberd-1.1.1/src/odbc/ejabberd_odbc.erl --- ejabberd-1.1.1.orig/src/odbc/ejabberd_odbc.erl 2006-05-07 19:05:12.549917750 +0400 +++ ejabberd-1.1.1/src/odbc/ejabberd_odbc.erl 2006-05-07 19:06:11.337591750 +0400 @@ -281,6 +281,7 @@ case mysql_conn:start(Server, ?MYSQL_PORT, Username, Password, DB, NoLogFun) of {ok, Ref} -> erlang:monitor(process, Ref), + catch 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]),