aboutsummaryrefslogtreecommitdiff
path: root/src/odbc
diff options
context:
space:
mode:
authorAlexey Shchepin <alexey@process-one.net>2005-04-18 18:41:57 +0000
committerAlexey Shchepin <alexey@process-one.net>2005-04-18 18:41:57 +0000
commit77c825130085520bb32ffa218d6b13d0b2739bd8 (patch)
treebf4c78dc8c82c5fd06b9ded4c8947ed616b2765d /src/odbc
parentFixed date in documentation. (diff)
* src/odbc/ejabberd_odbc.erl: ODBC connection string can be
specified via odbc_server option now * src/ejabberd.cfg.example: Added ODBC usage example SVN Revision: 314
Diffstat (limited to 'src/odbc')
-rw-r--r--src/odbc/ejabberd_odbc.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/odbc/ejabberd_odbc.erl b/src/odbc/ejabberd_odbc.erl
index 3800d141e..77f90f957 100644
--- a/src/odbc/ejabberd_odbc.erl
+++ b/src/odbc/ejabberd_odbc.erl
@@ -68,7 +68,7 @@ escape(S) ->
%% {stop, Reason}
%%----------------------------------------------------------------------
init([]) ->
- {ok, Ref} = odbc:connect("DSN=ejabberd;UID=ejabberd;PWD=ejabberd",
+ {ok, Ref} = odbc:connect(ejabberd_config:get_local_option(odbc_server),
[{scrollable_cursors, off}]),
{ok, #state{odbc_ref = Ref}}.