]> 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:07:08 +0000 (22:07 -0400)
commit47e7cb92b1a8df83d926038ce456dbe12f4aba32
tree27aa5d543925c5c035d5b2659d5c50252305bc19
parent52130ab6b33561e7a60267e630cff9b48599565c
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
(cherry picked from commit b6619f267ba6a327d6bff1aa650dd3ab9b718b29)
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