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
1 changed files with 2 additions and 2 deletions

View File

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