Skip to content

Commit daab203

Browse files
committed
Revert changes to conversion of pgsql int types
1 parent 7a53192 commit daab203

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ejabberd_sql.erl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -922,9 +922,9 @@ pgsql_prepare(SQLQuery, State) ->
922922
pgsql_execute_escape() ->
923923
#sql_escape{
924924
string = fun(X) -> X end,
925-
integer = fun(X) -> misc:i2l(X) end,
926-
boolean = fun(true) -> <<"1">>;
927-
(false) -> <<"0">>
925+
integer = fun(X) -> [misc:i2l(X)] end,
926+
boolean = fun(true) -> "1";
927+
(false) -> "0"
928928
end,
929929
timestamp = fun escape_timestamp/1,
930930
in_array_string = fun(X) -> <<"\"", (escape(X))/binary, "\"">> end,

0 commit comments

Comments
 (0)