]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- [bug] the value of a composite attribute is now
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 26 Oct 2011 16:41:18 +0000 (12:41 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 26 Oct 2011 16:41:18 +0000 (12:41 -0400)
commitd9adb2a4fd3e865d3c8d4f6f2e0a12d5c4036c97
treec00b308c373d2dae57c09e65d206e4be619b1ab6
parent8301651428be5396b76f7d20c8f61b5558d5a971
- [bug] the value of a composite attribute is now
expired after an insert or update operation, instead
of regenerated in place.  This ensures that a
column value which is expired within a flush
will be loaded first, before the composite
is regenerated using that value.  [ticket:2309]

- [bug] The fix in [ticket:2309] also emits the
"refresh" event when the composite value is
loaded on access, even if all column
values were already present, as is appropriate.
This fixes the "mutable" extension which relies
upon the "load" event to ensure the _parents
dictionary is up to date, fixes [ticket:2308].
Thanks to Scott Torborg for the test case here.
CHANGES
lib/sqlalchemy/orm/descriptor_props.py
test/ext/test_mutable.py
test/orm/test_composites.py