]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- An instance which is moved to "transient", has
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 30 Jun 2010 20:12:32 +0000 (16:12 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 30 Jun 2010 20:12:32 +0000 (16:12 -0400)
commit005d0453500c85fc8a6f15ce709251e2c5dae0f7
treef5477fa8522c2b2a61e759f6dc0aa8f5595fa5d7
parent5a58907c99210627fce14c24e61933f003fd435b
- An instance which is moved to "transient", has
an incomplete or missing set of primary key
attributes, and contains expired attributes, will
raise an InvalidRequestError if an expired attribute
is accessed, instead of getting a recursion overflow.

- make_transient() removes all "loader" callables from
the state being made transient, removing any
"expired" state - all unloaded attributes reset back
to undefined, None/empty on access.
CHANGES
lib/sqlalchemy/orm/mapper.py
lib/sqlalchemy/orm/session.py
test/orm/test_expire.py
test/orm/test_session.py