[Sqlalchemy-tickets] Issue #3373: relationship comparisons to objects with None don't render IS NUL
Brought to you by:
zzzeek
|
From: Mike B. <iss...@bi...> - 2015-04-20 20:21:33
|
New issue 3373: relationship comparisons to objects with None don't render IS NULL https://bitbucket.org/zzzeek/sqlalchemy/issue/3373/relationship-comparisons-to-objects-with Mike Bayer: e.g.: session.query(Address).filter(Address.user == User(id=None)) will produce: SELECT address.id AS address_id, address.user_id AS address_user_id, address.email_address AS address_email_address FROM address WHERE ? = address.user_id (None,) This have to be fixed for all the relationship filter conditions, including filter() with both == and !=, with_parent(), etc. see also #3371, which adds a warning for these. |