summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/crud.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqlalchemy/sql/crud.py')
-rw-r--r--lib/sqlalchemy/sql/crud.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/sql/crud.py b/lib/sqlalchemy/sql/crud.py
index 58cd80995..70e03d220 100644
--- a/lib/sqlalchemy/sql/crud.py
+++ b/lib/sqlalchemy/sql/crud.py
@@ -136,7 +136,7 @@ def _get_crud_params(compiler, stmt, **kw):
if parameters and stmt_parameters:
check = set(parameters).intersection(
- _column_as_key(k) for k in stmt.parameters
+ _column_as_key(k) for k in stmt_parameters
).difference(check_columns)
if check:
raise exc.CompileError(