]> 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:28:43 +0000 (20:28 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 9 Dec 2012 01:28:43 +0000 (20:28 -0500)
commit3859742a91ef73755974a536a2f1a6937594d92b
tree356c81fcee40ae1c753f45b1fc4d71bf25010951
parent33bafcb132ed959f072f98fa488b05e5628f097b
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.
Also in 0.7.10. [ticket:2631]
doc/build/changelog/changelog_07.rst
doc/build/changelog/changelog_08.rst
lib/sqlalchemy/schema.py
test/sql/test_metadata.py