24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-08 21:43:07 +02:00

Change conversion of boolean values for cockroachdb

This commit is contained in:
Paweł Chmielowski 2020-03-18 14:01:15 +01:00
parent 260c289d34
commit f12ee28660

View File

@ -736,8 +736,8 @@ pgsql_sql_query_format(SQLQuery) ->
pgsql_escape() -> pgsql_escape() ->
#sql_escape{string = fun(X) -> <<"E'", (escape(X))/binary, "'">> end, #sql_escape{string = fun(X) -> <<"E'", (escape(X))/binary, "'">> end,
integer = fun(X) -> misc:i2l(X) end, integer = fun(X) -> misc:i2l(X) end,
boolean = fun(true) -> <<"1">>; boolean = fun(true) -> <<"'t'">>;
(false) -> <<"0">> (false) -> <<"'f'">>
end, end,
in_array_string = fun(X) -> <<"E'", (escape(X))/binary, "'">> end, in_array_string = fun(X) -> <<"E'", (escape(X))/binary, "'">> end,
like_escape = fun() -> <<"">> end like_escape = fun() -> <<"">> end