1. Ben Trofatter
  2. sqlalchemy-2663

Commits

Mike Bayer  committed 658320d

- Removed conflicting `contains()` operator from
`InstrumentedAttribute` which didn't accept `escape` kwaarg
[ticket:1153].

  • Participants
  • Parent commits 13c828e
  • Branches default

Comments (0)

Files changed (2)

File CHANGES

View file
  • Ignore whitespace
     - The `echo_uow` flag on `Session` is deprecated, and unit-of-work
       logging is now application-level only, not per-session level.
 
+    - Removed conflicting `contains()` operator from 
+      `InstrumentedAttribute` which didn't accept `escape` kwaarg
+      [ticket:1153].
+      
 - declarative
     - Fixed bug whereby mapper couldn't initialize if a composite
       primary key referenced another table that was not defined

File lib/sqlalchemy/orm/interfaces.py

View file
  • Ignore whitespace
         raise NotImplementedError("%r" % self)
 
     @staticmethod
-    def contains_op(a, b):
-        return a.contains(b)
-
-    @staticmethod
     def any_op(a, b, **kwargs):
         return a.any(b, **kwargs)
 
 
         return self.operate(PropComparator.of_type_op, class_)
 
-    def contains(self, other):
-        """Return true if this collection contains other"""
-        return self.operate(PropComparator.contains_op, other)
-
     def any(self, criterion=None, **kwargs):
         """Return true if this collection contains any member that meets the given criterion.