]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- Primary key values can now be changed on a joined-table inheritance
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 2 Feb 2010 22:56:19 +0000 (22:56 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 2 Feb 2010 22:56:19 +0000 (22:56 +0000)
commitc1e0978556c50a44b371a196fecfb08f0117c047
tree38757ccc1fc2affffbbf980adaed2b682e6899e0
parent9a84fa585bf7ee9db7de0abc9b175cd397199335
- 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]
CHANGES
lib/sqlalchemy/orm/__init__.py
lib/sqlalchemy/orm/dependency.py
lib/sqlalchemy/orm/mapper.py
lib/sqlalchemy/orm/sync.py
lib/sqlalchemy/orm/unitofwork.py
test/orm/inheritance/test_basic.py
test/orm/test_naturalpks.py
test/orm/test_unitofwork.py