mirror of
https://github.com/processone/ejabberd
synced 2025-10-06 03:50:15 +02:00
Convert DB details to string when calling odbc:connect/2 (EJAB-1681)
This commit is contained in:
parent
c29ba14dbf
commit
46b2d91105
1 changed files with 1 additions and 1 deletions
|
@ -484,7 +484,7 @@ abort_on_driver_error(Reply, From) ->
|
||||||
%% Open an ODBC database connection
|
%% Open an ODBC database connection
|
||||||
odbc_connect(SQLServer) ->
|
odbc_connect(SQLServer) ->
|
||||||
ejabberd:start_app(odbc),
|
ejabberd:start_app(odbc),
|
||||||
odbc:connect(SQLServer, [{scrollable_cursors, off}]).
|
odbc:connect(binary_to_list(SQLServer), [{scrollable_cursors, off}]).
|
||||||
|
|
||||||
%% == Native PostgreSQL code
|
%% == Native PostgreSQL code
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue