]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Function needed compare_type so that its type is set as the type in boolean expressions
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 23 Feb 2006 01:32:26 +0000 (01:32 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 23 Feb 2006 01:32:26 +0000 (01:32 +0000)
lib/sqlalchemy/sql.py

index 2a1686e12d1d045a5cfa536eb1621a3da19d1705..cbd9a82f31463b4c8e01032ef97c1e5d1672aaf8 100644 (file)
@@ -796,7 +796,9 @@ class Function(ClauseList, ColumnElement):
         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):