]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- renamed PASSIVE_NORESULT to PASSIVE_NO_RESULT
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 7 Aug 2009 21:14:32 +0000 (21:14 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 7 Aug 2009 21:14:32 +0000 (21:14 +0000)
commit7b019f3d49cb2e4340e4c2029e9841af0153b2e6
tree39c43e82b2a3bff721ec48e197b62e66c6e0f8e6
parent54dd8b851b8378419594b6a629c30d9b7b47b7c7
- renamed PASSIVE_NORESULT to PASSIVE_NO_RESULT
- renamed PASSIVE_NO_CALLABLES to PASSIVE_NO_FETCH
- passive now propagates all the way through lazy callables,
all the way into query._get(), so that many-to-one lazy load
can load the instance via the local session but not trigger
any SQL if not available, fixes [ticket:1298] without
messing up consistency of tests added in r6201
- many-to-one also handles returning PASSIVE_NO_RESULT
for the "old" value thus eliminating the need for the
previous value even if the new value is None
- query._get() uses identity_map.get(), which has been
changed to no longer raise KeyError, thus providing
mythical time savings that didn't seem to make any
difference in how fast the unit tests ran.
06CHANGES
lib/sqlalchemy/orm/attributes.py
lib/sqlalchemy/orm/identity.py
lib/sqlalchemy/orm/mapper.py
lib/sqlalchemy/orm/query.py
lib/sqlalchemy/orm/state.py
lib/sqlalchemy/orm/strategies.py
test/orm/test_attributes.py
test/orm/test_backref_mutations.py
test/orm/test_dynamic.py
test/orm/test_extendedattr.py