]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
remove check_columns here so warning not emitted with update from
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 26 Feb 2012 23:22:27 +0000 (18:22 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 26 Feb 2012 23:22:27 +0000 (18:22 -0500)
lib/sqlalchemy/sql/compiler.py

index 1db88c68c90ff9868e9c09d7ffc7e58733a5a09a..b955c5608813ac81c60d1cbae9d95d5efafe6c80 100644 (file)
@@ -1303,7 +1303,7 @@ class SQLCompiler(engine.Compiled):
         if parameters and stmt.parameters:
             check = set(parameters).intersection(
                 sql._column_as_key(k) for k in stmt.parameters
-            )
+            ).difference(check_columns)
             if check:
                 util.warn(
                     "Unconsumed column names: %s" %