mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
NEQ does not work on Postgres with bool field. #5734
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dekey on GitHub (Oct 9, 2017).
Originally assigned to: @lcobucci on GitHub.
Hi. I have a table contact with bool field on
Postgres9.6When I try to create query builder for this table with condition
not equalto trueGot next SQL:
SELECT i0_.id AS id_0 FROM contact i0_ WHERE i0_.unsubscribed <> true;The main problem that condition
<>does not work with boolean field. Instead of<>on Postgres is using conditionIS NOT TRUE.I know that I could use native query, but in some cases I can`t use it. I would like to know your comments about.
Thank you in advance.