TL;DR
This:
query |> where([account], account.owner_id == "42")
is not the same as this:
owner_id = "42"
query |> where([a...
For further actions, you may consider blocking this person and/or reporting abuse
If you aren't using a schema, you can also define the type in the query like:
Thanks for sharing, always learning something new every day ;)
In Postgres I don't know, but in MySql comparing a string with an integer works but its very inefficient in terms of query performance.
Thanks for reading 🙂
I think comparing string with integer can't be done in postgres, but the above error is from Ecto, which will complain before it even hits the db.