]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- Fixed a critical regression caused by :ticket:`3061` where the
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 17 Apr 2015 20:06:04 +0000 (16:06 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 17 Apr 2015 20:06:04 +0000 (16:06 -0400)
commitd349ad448c020d9c4ac976c048500d2cee51ab6d
treec35707e4e9b25c546468a418c0589a764a3495ba
parent9f468e305d0a6b42a1d384a70dcf8fb51effa693
- Fixed a critical regression caused by :ticket:`3061` where the
NEVER_SET symbol could easily leak into a lazyload query, subsequent
to the flush of a pending object.  This would occur typically
for a many-to-one relationship that does not use a simple
"get" strategy.   The good news is that the fix improves efficiency
vs. 0.9, because we can now skip the SELECT statement entirely
when we detect NEVER_SET symbols present in the parameters; prior to
:ticket:`3061`, we couldn't discern if the None here were set or not.
fixes #3368
doc/build/changelog/changelog_10.rst
lib/sqlalchemy/orm/base.py
lib/sqlalchemy/orm/strategies.py
lib/sqlalchemy/orm/util.py
test/orm/test_lazy_relations.py