diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2011-04-22 18:33:55 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2011-04-22 18:33:55 -0400 |
commit | eb569b672bada027f5cfe7c918c91affeb9c61b0 (patch) | |
tree | a6138eb5957e7dd3f3b7c8c2f19ee6d54e4da8d7 /lib/sqlalchemy/sql/compiler.py | |
parent | 5b8a84ea4444c8d0e8aa4c2b9565e019cfa245a1 (diff) | |
download | sqlalchemy-eb569b672bada027f5cfe7c918c91affeb9c61b0.tar.gz |
- It is an error to call query.get() when the
given entity is not a single, full class
entity or mapper (i.e. a column). This is
a deprecation warning in 0.6.8.
[ticket:2144]
Diffstat (limited to 'lib/sqlalchemy/sql/compiler.py')
-rw-r--r-- | lib/sqlalchemy/sql/compiler.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/sql/compiler.py b/lib/sqlalchemy/sql/compiler.py index 82c1748cc..829adebac 100644 --- a/lib/sqlalchemy/sql/compiler.py +++ b/lib/sqlalchemy/sql/compiler.py @@ -965,7 +965,7 @@ class SQLCompiler(engine.Compiled): if colparams or not supports_default_values: text += " (%s)" % ', '.join([preparer.format_column(c[0]) for c in colparams]) - + if self.returning or insert_stmt._returning: self.returning = self.returning or insert_stmt._returning returning_clause = self.returning_clause( |