Mike Bayer committed 2bc9d5b

Function needed compare_type so that its type is set as the type in boolean expressions

Comments (0)

Files changed (1)


         return select([self])
     def hash_key(self):
         return + "(" + string.join([c.hash_key() for c in self.clauses], ", ") + ")"
+    def _compare_type(self, obj):
+        return self.type
 class BinaryClause(ClauseElement):
     """represents two clauses with an operator in between"""
     def __init__(self, left, right, operator, type=None):