From 42953ed47bb1ecbbb1314c21533223b830cc78e3 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Thu, 23 Feb 2006 01:32:26 +0000 Subject: [PATCH] Function needed compare_type so that its type is set as the type in boolean expressions --- lib/sqlalchemy/sql.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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): -- 2.47.2