From: Mike Bayer Date: Sun, 9 Dec 2012 01:39:32 +0000 (-0500) Subject: add a doc for the [ticket:2631] quirk X-Git-Tag: rel_0_8_0b2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fef25bdcf9cf9f7936a569acd3b9eb850f1c3fd9;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git add a doc for the [ticket:2631] quirk --- diff --git a/doc/build/core/schema.rst b/doc/build/core/schema.rst index 759cc4f33b..2c47f56471 100644 --- a/doc/build/core/schema.rst +++ b/doc/build/core/schema.rst @@ -711,6 +711,11 @@ called out using :class:`.FetchedValue` as a marker:: Column('def', String(20), server_onupdate=FetchedValue()) ) +.. versionchanged:: 0.8.0b2,0.7.10 + The ``for_update`` argument on :class:`.FetchedValue` is set automatically + when specified as the ``server_onupdate`` argument. If using an older version, + specify the onupdate above as ``server_onupdate=FetchedValue(for_update=True)``. + These markers do not emit a "default" clause when the table is created, however they do set the same internal flags as a static ``server_default`` clause, providing hints to higher-level tools that a "post-fetch" of these