24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-26 22:35:31 +02:00

* src/odbc/ejabberd_odbc.erl: Start ODBC explicitely because

Erlang R12 doesn't start automatically like in R11 and
older (thanks to Sergei Golovan)(EJAB-541)

SVN Revision: 1231
This commit is contained in:
Badlop 2008-03-13 14:34:47 +00:00
parent 7c377783fa
commit 04aec272db
2 changed files with 5 additions and 0 deletions

View File

@ -1,5 +1,9 @@
2008-03-13 Badlop <badlop@process-one.net> 2008-03-13 Badlop <badlop@process-one.net>
* src/odbc/ejabberd_odbc.erl: Start ODBC explicitely because
Erlang R12 doesn't start automatically like in R11 and
older (thanks to Sergei Golovan)(EJAB-541)
* src/ejabberd.hrl: Removed unused ejabberd_debug and * src/ejabberd.hrl: Removed unused ejabberd_debug and
PRIVACY_SUPPORT. Reordered the remaining options PRIVACY_SUPPORT. Reordered the remaining options

View File

@ -246,6 +246,7 @@ execute_transaction(State, F, NRestarts) ->
%% part of init/1 %% part of init/1
%% Open an ODBC database connection %% Open an ODBC database connection
odbc_connect(SQLServer) -> odbc_connect(SQLServer) ->
application:start(odbc),
case odbc:connect(SQLServer,[{scrollable_cursors, off}]) of case odbc:connect(SQLServer,[{scrollable_cursors, off}]) of
{ok, Ref} -> {ok, Ref} ->
erlang:monitor(process, Ref), erlang:monitor(process, Ref),