Closed dfrese closed 10 months ago
What the result of f.a == 1
?
Boolean?
In Postgres? Yes.
Something like
select: %{
res: f.myint + 5
}
works, btw.
In Oracle boolean is rare
In 23c
select dump(1=2), dump(1=1), 1=1 from dual []
{:ok,
%{
columns: ["DUMP(1=2)", "DUMP(1=1)", "1=1"],
num_rows: 1,
rows: [["Typ=252 Len=1: 0", "Typ=252 Len=1: 1", 1]]
}}
Running a query like this
gets translated into SQL like
which at least my Oracle 19c does not support. (
ORA-00907: missing right parenthesis
)A minor issue, as it can be worked around in this case with a fragment and a 'CAST' expression, but this works with the Postgresql Ecto adapter for example.
Greetings, David