DEV Community

Discussion on: TIL: Ecto's pin is coercing

exadra37 profile image
Paulo Renato

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.

lasseebert profile image
Lasse Skindstad Ebert Author

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.