]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- fix the marker here so this page can be found
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 10 Oct 2014 21:17:34 +0000 (17:17 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 10 Oct 2014 21:17:34 +0000 (17:17 -0400)
- clarify the note about the defaults, note that it's upcoming in 1.0

doc/build/core/defaults.rst
lib/sqlalchemy/sql/dml.py

index 166273c186e84a96cd311308f4f47e5c7558c78a..7b426cf746e4c614b382a85d07744343585b234b 100644 (file)
@@ -1,6 +1,7 @@
+.. module:: sqlalchemy.schema
+
 .. _metadata_defaults_toplevel:
 .. _metadata_defaults:
-.. module:: sqlalchemy.schema
 
 Column Insert/Update Defaults
 ==============================
index 62be3a28653c3a4f358fbddcf3b9862bf8d11983..910806ebbee0df7bc77f1360a91283a40ec5ff5a 100644 (file)
@@ -516,10 +516,12 @@ class Insert(ValuesBase):
 
         .. note::
 
-           A SELECT..INSERT construct in SQL has no VALUES clause.  Therefore
-           :class:`.Column` objects which utilize Python-side defaults
-           (e.g. as described at :ref:`metadata_defaults_toplevel`)
-           will **not** take effect when using :meth:`.Insert.from_select`.
+           Python-side and SQL function defaults, as described at
+           :ref:`metadata_defaults_toplevel`, are **not** automatically
+           included in the SELECT statement as rendered unless explicitly
+           added to the statement.  The behavior of automatically rendering
+           these default values and expressions is available as of SQLAlchemy
+           version 1.0.0.
 
         .. versionadded:: 0.8.3