1
0
Fork 0
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:
Badlop 2014-02-26 17:26:46 +01:00
parent c29ba14dbf
commit 46b2d91105

View file

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