mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-20 17:27:00 +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>
|
||||
|
||||
* src/ejabberd_auth.erl: plugin authentication modules can now
|
||||
|
@ -223,6 +223,7 @@ execute_transaction(State, F, NRestarts) ->
|
||||
odbc_connect(SQLServer) ->
|
||||
case odbc:connect(SQLServer,[{scrollable_cursors, off}]) of
|
||||
{ok, Ref} ->
|
||||
erlang:monitor(process, Ref),
|
||||
{ok, #state{db_ref = Ref, db_type = odbc}};
|
||||
{error, Reason} ->
|
||||
?ERROR_MSG("ODBC connection (~s) failed: ~p~n",
|
||||
|
Loading…
Reference in New Issue
Block a user