mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-22 17:28:25 +01:00
* src/odbc/ejabberd_odbc.erl: Reconnect on ODBC connection closing
SVN Revision: 502
This commit is contained in:
parent
2f0cf8bce8
commit
b8e99a3c05
@ -1,3 +1,7 @@
|
|||||||
|
2006-02-08 Alexey Shchepin <alexey@sevcom.net>
|
||||||
|
|
||||||
|
* src/odbc/ejabberd_odbc.erl: Reconnect on ODBC connection closing
|
||||||
|
|
||||||
2006-02-07 Mickael Remond <mickael.remond@process-one.net>
|
2006-02-07 Mickael Remond <mickael.remond@process-one.net>
|
||||||
|
|
||||||
* src/ejabberd_auth.erl: plugin authentication modules can now
|
* src/ejabberd_auth.erl: plugin authentication modules can now
|
||||||
|
@ -223,6 +223,7 @@ execute_transaction(State, F, NRestarts) ->
|
|||||||
odbc_connect(SQLServer) ->
|
odbc_connect(SQLServer) ->
|
||||||
case odbc:connect(SQLServer,[{scrollable_cursors, off}]) of
|
case odbc:connect(SQLServer,[{scrollable_cursors, off}]) of
|
||||||
{ok, Ref} ->
|
{ok, Ref} ->
|
||||||
|
erlang:monitor(process, Ref),
|
||||||
{ok, #state{db_ref = Ref, db_type = odbc}};
|
{ok, #state{db_ref = Ref, db_type = odbc}};
|
||||||
{error, Reason} ->
|
{error, Reason} ->
|
||||||
?ERROR_MSG("ODBC connection (~s) failed: ~p~n",
|
?ERROR_MSG("ODBC connection (~s) failed: ~p~n",
|
||||||
|
Loading…
Reference in New Issue
Block a user