diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2011-04-10 20:22:11 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2011-04-10 20:22:11 -0400 |
commit | 1da499a838cb3cc50c98f7b32de6d35a09f00fe6 (patch) | |
tree | 0b465614567ebe57a36b1eb97593ed595409e696 /lib/sqlalchemy/orm/state.py | |
parent | fb97a666bb6e352ae908d763d2d8ac3c087cd529 (diff) | |
download | sqlalchemy-1da499a838cb3cc50c98f7b32de6d35a09f00fe6.tar.gz |
- 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.
Diffstat (limited to 'lib/sqlalchemy/orm/state.py')
-rw-r--r-- | lib/sqlalchemy/orm/state.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/sqlalchemy/orm/state.py b/lib/sqlalchemy/orm/state.py index 00582fbdb..0963a526b 100644 --- a/lib/sqlalchemy/orm/state.py +++ b/lib/sqlalchemy/orm/state.py @@ -521,7 +521,6 @@ class MutableAttrInstanceState(InstanceState): # store strong ref'ed version of the object; will revert # to weakref when changes are persisted - obj = self.manager.new_instance(state=self) self.obj = weakref.ref(obj, self._cleanup) self._strong_obj = obj |