25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

Rollback minor change, to avoid redundant use of fail-safe function

This commit is contained in:
Prasad Vaidya 2016-10-21 15:02:39 +05:30
parent 509776a0d1
commit cdafd3254b

View File

@ -664,7 +664,7 @@ mssql_sql_query(SQLQuery) ->
pgsql_prepare(SQLQuery, State) ->
Escape = #sql_escape{_ = fun(X) -> X end},
N = length((SQLQuery#sql_query.args)(Escape)),
Args = [<<$$, (jlib:i2l(I))/binary>> || I <- lists:seq(1, N)],
Args = [<<$$, (integer_to_binary(I))/binary>> || I <- lists:seq(1, N)],
Query = (SQLQuery#sql_query.format_query)(Args),
pgsql:prepare(State#state.db_ref, SQLQuery#sql_query.hash, Query).