From: Mike Bayer Date: Thu, 23 Feb 2006 01:32:26 +0000 (+0000) Subject: Function needed compare_type so that its type is set as the type in boolean expressions X-Git-Tag: rel_0_1_1~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42953ed47bb1ecbbb1314c21533223b830cc78e3;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Function needed compare_type so that its type is set as the type in boolean expressions --- diff --git a/lib/sqlalchemy/sql.py b/lib/sqlalchemy/sql.py index 2a1686e12d..cbd9a82f31 100644 --- a/lib/sqlalchemy/sql.py +++ b/lib/sqlalchemy/sql.py @@ -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):