]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- class.someprop.in_() raises NotImplementedError pending
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 16 Aug 2008 22:41:57 +0000 (22:41 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 16 Aug 2008 22:41:57 +0000 (22:41 +0000)
the implementation of "in_" for relation [ticket:1140]

CHANGES
lib/sqlalchemy/orm/properties.py

diff --git a/CHANGES b/CHANGES
index 3bfbfe88e3f90f00795a2fa8875512002963c9c2..822b756d3d115e2bfd2cbb262519da8afd4c357c 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -29,7 +29,10 @@ CHANGES
       well as query.join().  Note that in some scenarios the IN
       clause will appear in the WHERE clause of the query as well
       since this discrimination has multiple trigger points.
-
+    
+    - class.someprop.in_() raises NotImplementedError pending
+      the implementation of "in_" for relation [ticket:1140]
+      
     - Improved the behavior of query.join() when joining to
       joined-table inheritance subclasses, using explicit join
       criteria (i.e. not on a relation).
index 3f61f3ebd24ae0358b54e0b22b0c4d996056a0e8..4056c2ff91871bc34b3ea8cd4554e76ad3c5fe40 100644 (file)
@@ -325,7 +325,10 @@ class PropertyLoader(StrategizedProperty):
 
         def of_type(self, cls):
             return PropertyLoader.Comparator(self.prop, self.mapper, cls)
-
+        
+        def in_(self, other):
+            raise NotImplementedError("in_() not yet supported for relations.  For a simple many-to-one, use in_() against the set of foreign key values.")
+            
         def __eq__(self, other):
             if other is None:
                 if self.prop.direction in [ONETOMANY, MANYTOMANY]: