]> granicus.if.org Git - ejabberd/commitdiff
Rollback minor change, to avoid redundant use of fail-safe function
authorPrasad Vaidya <iprasadvaidya@gmail.com>
Fri, 21 Oct 2016 09:32:39 +0000 (15:02 +0530)
committerPrasad Vaidya <iprasadvaidya@gmail.com>
Fri, 21 Oct 2016 09:32:39 +0000 (15:02 +0530)
src/ejabberd_sql.erl

index 5900b414bc8d709c2032617cfab4cbe1f180905d..27c2815ba7c3218dd0441c7e2a6755e65d3fa560 100644 (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).