summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/compiler.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2014-10-10 17:15:19 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2014-10-10 17:15:19 -0400
commit95be42c06ff4e5f3528de42bb04dcba228ea74c2 (patch)
tree602636e859b40fe8809ff38c50162a5c9402f85d /lib/sqlalchemy/sql/compiler.py
parent3a6cdff88429e047a684c0f5d6029a30d9aaa062 (diff)
downloadsqlalchemy-95be42c06ff4e5f3528de42bb04dcba228ea74c2.tar.gz
- :meth:`.Insert.from_select` now includes Python and SQL-expression
defaults if otherwise unspecified; the limitation where non- server column defaults aren't included in an INSERT FROM SELECT is now lifted and these expressions are rendered as constants into the SELECT statement.
Diffstat (limited to 'lib/sqlalchemy/sql/compiler.py')
-rw-r--r--lib/sqlalchemy/sql/compiler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/sql/compiler.py b/lib/sqlalchemy/sql/compiler.py
index 86f00d944..a6c30b7dc 100644
--- a/lib/sqlalchemy/sql/compiler.py
+++ b/lib/sqlalchemy/sql/compiler.py
@@ -1793,7 +1793,7 @@ class SQLCompiler(Compiled):
text += " " + returning_clause
if insert_stmt.select is not None:
- text += " %s" % self.process(insert_stmt.select, **kw)
+ text += " %s" % self.process(self._insert_from_select, **kw)
elif not crud_params and supports_default_values:
text += " DEFAULT VALUES"
elif insert_stmt._has_multi_parameters: