From c0862926517a1b028a21b8890518564d4f48231a Mon Sep 17 00:00:00 2001 From: Badlop Date: Thu, 13 Mar 2008 14:34:47 +0000 Subject: [PATCH] * 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 --- ChangeLog | 4 ++++ src/odbc/ejabberd_odbc.erl | 1 + 2 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index ee3bf9251..77c275994 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2008-03-13 Badlop + * 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 PRIVACY_SUPPORT. Reordered the remaining options diff --git a/src/odbc/ejabberd_odbc.erl b/src/odbc/ejabberd_odbc.erl index 3a028359e..a1717a665 100644 --- a/src/odbc/ejabberd_odbc.erl +++ b/src/odbc/ejabberd_odbc.erl @@ -246,6 +246,7 @@ execute_transaction(State, F, NRestarts) -> %% part of init/1 %% Open an ODBC database connection odbc_connect(SQLServer) -> + application:start(odbc), case odbc:connect(SQLServer,[{scrollable_cursors, off}]) of {ok, Ref} -> erlang:monitor(process, Ref),