]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- The value of version_id_col can be changed
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 24 Jul 2010 14:10:28 +0000 (10:10 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 24 Jul 2010 14:10:28 +0000 (10:10 -0400)
commit8e0618aa650c43b483dbae443ddca94fcdd5b945
tree5afa12ff20e2c05aae2f379beb26832077987254
parentca9029ca9830573c4a5618e5dc01347576d50eb4
- The value of version_id_col can be changed
manually, and this will result in an UPDATE
of the row.  Versioned UPDATEs and DELETEs
now use the "committed" value of the
version_id_col in the WHERE clause and
not the pending changed value. The
version generator is also bypassed if
manual changes are present on the attribute.
[ticket:1857]
- ensure before_update/after_update called on parent
for collection change
CHANGES
lib/sqlalchemy/orm/mapper.py
test/orm/test_mapper.py
test/orm/test_versioning.py