]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Fixed bug where using server_onupdate=<FetchedValue|DefaultClause>
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 9 Dec 2012 01:31:06 +0000 (20:31 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 9 Dec 2012 01:31:06 +0000 (20:31 -0500)
commit4bfa09c16c756cc6ab72dfe29374f4cb3c418976
tree03356126e3df26a6e27f444c596f1c36e44a910e
parentf2909ff71bc854da04df2d7f4abd501696a424c8
Fixed bug where using server_onupdate=<FetchedValue|DefaultClause>
without passing the "for_update=True" flag would apply the default
object to the server_default, blowing away whatever was there.
The explicit for_update=True argument shouldn't be needed with this usage
(especially since the documentation shows an example without it being
used) so it is now arranged internally using a copy of the given default
object, if the flag isn't set to what corresponds to that argument.
[ticket:2631]
doc/build/changelog/changelog_07.rst
lib/sqlalchemy/schema.py
test/sql/test_metadata.py