From c4b081cc1d89e8d02cb9fad6a84daf035a90df63 Mon Sep 17 00:00:00 2001 From: Jason Kirtland Date: Thu, 19 Jul 2007 23:46:37 +0000 Subject: Merged reference fixes from r2986 --- lib/sqlalchemy/sql.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/sqlalchemy/sql.py') diff --git a/lib/sqlalchemy/sql.py b/lib/sqlalchemy/sql.py index fecb5350b..8b454947e 100644 --- a/lib/sqlalchemy/sql.py +++ b/lib/sqlalchemy/sql.py @@ -2163,10 +2163,10 @@ class _UnaryExpression(ColumnElement): visitor.visit_unary(self) def compare(self, other): - """Compare this ``_UnaryClause`` against the given ``ClauseElement``.""" + """Compare this ``_UnaryExpression`` against the given ``ClauseElement``.""" return ( - isinstance(other, _UnaryClause) and self.operator == other.operator and + isinstance(other, _UnaryExpression) and self.operator == other.operator and self.modifier == other.modifier and self.element.compare(other.element) ) -- cgit v1.2.1