diff options
Diffstat (limited to 'lib/sqlalchemy/orm/dependency.py')
-rw-r--r-- | lib/sqlalchemy/orm/dependency.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/orm/dependency.py b/lib/sqlalchemy/orm/dependency.py index 082998ba8..d4680e394 100644 --- a/lib/sqlalchemy/orm/dependency.py +++ b/lib/sqlalchemy/orm/dependency.py @@ -1184,7 +1184,7 @@ class ManyToManyDP(DependencyProcessor): if secondary_delete: associationrow = secondary_delete[0] - statement = self.secondary.delete( + statement = self.secondary.delete().where( sql.and_( *[ c == sql.bindparam(c.key, type_=c.type) |