summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/operators.py
diff options
context:
space:
mode:
authorGaëtan de Menten <gdementen@gmail.com>2007-10-19 10:27:06 +0000
committerGaëtan de Menten <gdementen@gmail.com>2007-10-19 10:27:06 +0000
commitae553db3cdb71c3cc14ca02bf53d6a81ff99fb8a (patch)
treeb2b536c0b36a40b5d5ea65df62b61c6301f27e34 /lib/sqlalchemy/sql/operators.py
parent974f59f091d562bb0e141c6b4087160d16190c1c (diff)
downloadsqlalchemy-ae553db3cdb71c3cc14ca02bf53d6a81ff99fb8a.tar.gz
- Added contains operator (which generate a "LIKE %<other>%" clause).
- Added test coverage for endswith operator
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 cf8aeb71d..78159697b 100644
--- a/lib/sqlalchemy/sql/operators.py
+++ b/lib/sqlalchemy/sql/operators.py
@@ -51,6 +51,9 @@ def startswith_op(a, b):
def endswith_op(a, b):
return a.endswith(b)
+def contains_op(a, b):
+ return a.contains(b)
+
def comma_op(a, b):
raise NotImplementedError()