]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- Added checks inside the UOW to detect the unusual
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 11 Apr 2011 00:22:11 +0000 (20:22 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 11 Apr 2011 00:22:11 +0000 (20:22 -0400)
commit1da499a838cb3cc50c98f7b32de6d35a09f00fe6
tree0b465614567ebe57a36b1eb97593ed595409e696
parentfb97a666bb6e352ae908d763d2d8ac3c087cd529
- Added checks inside the UOW to detect the unusual
condition of being asked to UPDATE or DELETE
on a primary key value that contains NULL
in it.  [ticket:2127]

- Some refinements to attribute history.  More
changes are pending possibly in 0.8, but
for now history has been modified such that
scalar history doesn't have a "side effect"
of populating None for a non-present value.
This allows a slightly better ability to
distinguish between a None set and no actual
change, affects [ticket:2127] as well.

- rewriting the history tests in test_attributes to be
individual per operation/assertion.   its a huge job
so this is partial for the moment.
CHANGES
lib/sqlalchemy/orm/attributes.py
lib/sqlalchemy/orm/mapper.py
lib/sqlalchemy/orm/state.py
test/orm/test_attributes.py
test/orm/test_cascade.py
test/orm/test_merge.py
test/orm/test_unitofwork.py