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
1 changed files with 1 additions and 1 deletions

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