24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-10 21:47:01 +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
odbc_connect(SQLServer) ->
ejabberd:start_app(odbc),
odbc:connect(SQLServer, [{scrollable_cursors, off}]).
odbc:connect(binary_to_list(SQLServer), [{scrollable_cursors, off}]).
%% == Native PostgreSQL code