mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Rollback minor change, to avoid redundant use of fail-safe function
This commit is contained in:
parent
509776a0d1
commit
cdafd3254b
@ -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).
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user