25
1
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:
Alexey Shchepin 2006-02-08 03:55:30 +00:00
parent 2f0cf8bce8
commit b8e99a3c05
2 changed files with 5 additions and 0 deletions

View File

@ -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

View File

@ -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",