Is this the correct way to convert postgresql ~* syntax in ecto? When I convert the ecto back into SQL, it is different. It uses or's instead of the original ~*
SQL
SELECT
col1,
FROM table1
WHERE col1 ~* 'AAA|bbb|CcC'
Ecto
from (t1 in table1,
where: ilike(t1.col1, "AAA") or ilike(t1.col1, "bbb") or ilike(t1.col1, "CcC"),
select: %{
col1: t1.col1
}
The Ecto gets converted back as ORs like so instead of the original WHERE col1 ~* 'AAA|bbb|CcC'
where
((sssp0."col1" ilike 'AAA')
or (sssp0."col1" ilike 'bbb'))
or (sssp0."col1" ilike 'CcC'))
Is this the same?