summaryrefslogtreecommitdiff
path: root/src/ejabberd_sql.erl
diff options
context:
space:
mode:
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>2016-09-24 23:34:28 +0300
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>2016-09-24 23:34:28 +0300
commitfa31e3ef2321e3901d167d3654693b85313acf08 (patch)
treea0cc9c146661887ef0b1440a103484fa5684e044 /src/ejabberd_sql.erl
parentImprove namespace handling (diff)
Deprecate jlib:integer_to_binary/1 and jlib:binary_to_integer/1
Diffstat (limited to 'src/ejabberd_sql.erl')
-rw-r--r--src/ejabberd_sql.erl10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ejabberd_sql.erl b/src/ejabberd_sql.erl
index a480a1bd..8116d617 100644
--- a/src/ejabberd_sql.erl
+++ b/src/ejabberd_sql.erl
@@ -768,7 +768,7 @@ sqlite_to_odbc(Host, {rowid, _}) ->
sqlite_to_odbc(_Host, [{columns, Columns}, {rows, TRows}]) ->
Rows = [lists:map(
fun(I) when is_integer(I) ->
- jlib:integer_to_binary(I);
+ integer_to_binary(I);
(B) ->
B
end, tuple_to_list(Row)) || Row <- TRows],
@@ -813,11 +813,11 @@ pgsql_item_to_odbc({<<"FETCH", _/binary>>, Rows,
{selected, [element(1, Row) || Row <- Rows], Recs};
pgsql_item_to_odbc(<<"INSERT ", OIDN/binary>>) ->
[_OID, N] = str:tokens(OIDN, <<" ">>),
- {updated, jlib:binary_to_integer(N)};
+ {updated, binary_to_integer(N)};
pgsql_item_to_odbc(<<"DELETE ", N/binary>>) ->
- {updated, jlib:binary_to_integer(N)};
+ {updated, binary_to_integer(N)};
pgsql_item_to_odbc(<<"UPDATE ", N/binary>>) ->
- {updated, jlib:binary_to_integer(N)};
+ {updated, binary_to_integer(N)};
pgsql_item_to_odbc({error, Error}) -> {error, Error};
pgsql_item_to_odbc(_) -> {updated, undefined}.
@@ -875,7 +875,7 @@ mysql_item_to_odbc(Columns, Recs) ->
to_odbc({selected, Columns, Recs}) ->
Rows = [lists:map(
fun(I) when is_integer(I) ->
- jlib:integer_to_binary(I);
+ integer_to_binary(I);
(B) ->
B
end, Row) || Row <- Recs],