summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/operators.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqlalchemy/sql/operators.py')
-rw-r--r--lib/sqlalchemy/sql/operators.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/sqlalchemy/sql/operators.py b/lib/sqlalchemy/sql/operators.py
index f851a5b00..560f723f2 100644
--- a/lib/sqlalchemy/sql/operators.py
+++ b/lib/sqlalchemy/sql/operators.py
@@ -180,6 +180,9 @@ class custom_op(object):
return isinstance(other, custom_op) and \
other.opstring == self.opstring
+ def __hash__(self):
+ return id(self)
+
def __call__(self, left, right, **kw):
return left.operate(self, right, **kw)