]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
heh dont need that either
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 25 Apr 2013 18:16:54 +0000 (14:16 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 25 Apr 2013 18:16:54 +0000 (14:16 -0400)
lib/sqlalchemy/sql/expression.py

index b6e0b5ce7861fc5d5cafd0cf8d2d5b458b5ca5a6..7846ac3b20e61d1fa1c982be63391efda830383e 100644 (file)
@@ -3910,13 +3910,7 @@ class Join(FromClause):
     def is_derived_from(self, fromclause):
         return fromclause is self or \
                 self.left.is_derived_from(fromclause) or \
-                self.right.is_derived_from(fromclause) or \
-                (
-                    isinstance(fromclause, Join) and
-                    self.left.is_derived_from(fromclause.left) and
-                    self.right.is_derived_from(fromclause.right) and
-                    self.onclause.compare(fromclause.onclause)
-                )
+                self.right.is_derived_from(fromclause)
 
     def self_group(self, against=None):
         return FromGrouping(self)