summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqlalchemy')
-rw-r--r--lib/sqlalchemy/orm/properties.py6
-rw-r--r--lib/sqlalchemy/sql/operators.py6
2 files changed, 3 insertions, 9 deletions
diff --git a/lib/sqlalchemy/orm/properties.py b/lib/sqlalchemy/orm/properties.py
index 79676642c..9a2d05754 100644
--- a/lib/sqlalchemy/orm/properties.py
+++ b/lib/sqlalchemy/orm/properties.py
@@ -329,12 +329,6 @@ class RelationshipProperty(StrategizedProperty):
else:
return elem
- def operate(self, op, *other, **kwargs):
- return op(self, *other, **kwargs)
-
- def reverse_operate(self, op, other, **kwargs):
- return op(self, *other, **kwargs)
-
def of_type(self, cls):
"""Produce a construct that represents a particular 'subtype' of
attribute for the parent class.
diff --git a/lib/sqlalchemy/sql/operators.py b/lib/sqlalchemy/sql/operators.py
index b86b50db4..0c779ec43 100644
--- a/lib/sqlalchemy/sql/operators.py
+++ b/lib/sqlalchemy/sql/operators.py
@@ -469,13 +469,13 @@ def like_op(a, b, escape=None):
return a.like(b, escape=escape)
def notlike_op(a, b, escape=None):
- raise NotImplementedError()
+ return ~a.like(b, escape=escape)
def ilike_op(a, b, escape=None):
return a.ilike(b, escape=escape)
def notilike_op(a, b, escape=None):
- raise NotImplementedError()
+ return ~a.ilike(b, escape=escape)
def between_op(a, b, c):
return a.between(b, c)
@@ -484,7 +484,7 @@ def in_op(a, b):
return a.in_(b)
def notin_op(a, b):
- raise NotImplementedError()
+ return ~a.in_(b)
def distinct_op(a):
return a.distinct()