diff options
author | Jason Kirtland <jek@discorporate.us> | 2007-07-19 23:46:37 +0000 |
---|---|---|
committer | Jason Kirtland <jek@discorporate.us> | 2007-07-19 23:46:37 +0000 |
commit | c4b081cc1d89e8d02cb9fad6a84daf035a90df63 (patch) | |
tree | 66fce62390bb2bf12f33da2c94a7011f4a09ec61 /lib/sqlalchemy/sql.py | |
parent | 7fed906a9bcf2a68109d2252d122e3a25c6f1861 (diff) | |
download | sqlalchemy-c4b081cc1d89e8d02cb9fad6a84daf035a90df63.tar.gz |
Merged reference fixes from r2986
Diffstat (limited to 'lib/sqlalchemy/sql.py')
-rw-r--r-- | lib/sqlalchemy/sql.py | 4 |
1 files changed, 2 insertions, 2 deletions
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) ) |