diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-04-24 16:27:58 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-04-24 16:27:58 -0400 |
commit | a55d6c5f35769ea61ea5240aff9f763229d3007e (patch) | |
tree | f2e39a1d1e583a9b393fc4910f23937749ceb2ee /lib/sqlalchemy/sql/compiler.py | |
parent | 1fe06a551c28a6e0886f96334deebdee68d9fff9 (diff) | |
download | sqlalchemy-a55d6c5f35769ea61ea5240aff9f763229d3007e.tar.gz |
- [feature] The "unconsumed column names" warning emitted
when keys are present in insert.values() or update.values()
that aren't in the target table is now an exception.
[ticket:2415]
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 218e48bca..a58da176c 100644 --- a/lib/sqlalchemy/sql/compiler.py +++ b/lib/sqlalchemy/sql/compiler.py @@ -1411,7 +1411,7 @@ class SQLCompiler(engine.Compiled): sql._column_as_key(k) for k in stmt.parameters ).difference(check_columns) if check: - util.warn( + raise exc.CompileError( "Unconsumed column names: %s" % (", ".join(check)) ) |