Commits

Mike Bayer committed 2bc9d5b

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

  • Participants
  • Parent commits 71b6bce

Comments (0)

Files changed (1)

lib/sqlalchemy/sql.py

         return select([self])
     def hash_key(self):
         return self.name + "(" + 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):