]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Continue to assume None for un-accessed attribute on persistent
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 13 May 2019 18:56:12 +0000 (14:56 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 14 May 2019 02:06:59 +0000 (22:06 -0400)
commitb6619f267ba6a327d6bff1aa650dd3ab9b718b29
tree8f4a964a35615f66fb5b8c03648a24c2cdb79eea
parentb26642e2364836fe9a8ee25c1cf4551901ce0c37
Continue to assume None for un-accessed attribute on persistent
object during m2o fetch

Fixed regression in new relationship m2o comparison logic first introduced
at :ref:`change_4359` when comparing to an attribute that is persisted as
NULL and is in an un-fetched state in the mapped instance.  Since the
attribute has no explicit default, it needs to default to NULL when
accessed in a persistent setting.

Fixes: #4676
Change-Id: I17160c30131187c735f025a785ff0276a246f6bb
doc/build/changelog/unreleased_13/4676.rst [new file with mode: 0644]
lib/sqlalchemy/orm/relationships.py
test/orm/_fixtures.py
test/orm/test_naturalpks.py
test/orm/test_query.py