]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Re-send column value w/ onupdate default during post-update
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 6 Jun 2017 17:54:33 +0000 (13:54 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 6 Jun 2017 17:54:33 +0000 (13:54 -0400)
commit6b68a70b5f903079f3c42a827daa3ea08a1a4b53
treebd602ca0b8f63a845b555c9d3039e4f9c10b25d9
parenta2099ed44f390f1d480341907a4dc601f9195ec9
Re-send column value w/ onupdate default during post-update

Adjusted the behavior of post_update such that if a column with
an "onupdate" default has received an explicit value for
INSERT, re-send the same data during a post-update UPDATE so
that the value remains in effect, rather than an onupdate
overwriting it.

Change-Id: I26bccb6f957dcad07a2bcbda2dd9e14c60b92b06
Fixes: #3471
doc/build/changelog/changelog_12.rst
doc/build/changelog/migration_12.rst
lib/sqlalchemy/orm/persistence.py
test/orm/test_cycles.py