summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/orm/unitofwork.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2010-02-02 22:56:19 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2010-02-02 22:56:19 +0000
commitc1e0978556c50a44b371a196fecfb08f0117c047 (patch)
tree38757ccc1fc2affffbbf980adaed2b682e6899e0 /lib/sqlalchemy/orm/unitofwork.py
parent9a84fa585bf7ee9db7de0abc9b175cd397199335 (diff)
downloadsqlalchemy-c1e0978556c50a44b371a196fecfb08f0117c047.tar.gz
- Primary key values can now be changed on a joined-table inheritance
object, and ON UPDATE CASCADE will be taken into account when the flush happens. Set the new "passive_updates" flag to False on mapper() when using SQLite or MySQL/MyISAM. [ticket:1362] - flush() now detects when a primary key column was updated by an ON UPDATE CASCADE operation from another primary key, and can then locate the row for a subsequent UPDATE on the new PK value. This occurs when a relation() is there to establish the relationship as well as passive_updates=True. [ticket:1671]
Diffstat (limited to 'lib/sqlalchemy/orm/unitofwork.py')
-rw-r--r--lib/sqlalchemy/orm/unitofwork.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/orm/unitofwork.py b/lib/sqlalchemy/orm/unitofwork.py
index 1fffda028..d2901a49f 100644
--- a/lib/sqlalchemy/orm/unitofwork.py
+++ b/lib/sqlalchemy/orm/unitofwork.py
@@ -99,7 +99,7 @@ class UOWTransaction(object):
self.attributes = {}
self.processors = set()
-
+
def get_attribute_history(self, state, key, passive=True):
hashkey = ("history", state, key)