diff options
author | Gaëtan de Menten <gdementen@gmail.com> | 2007-10-19 10:27:06 +0000 |
---|---|---|
committer | Gaëtan de Menten <gdementen@gmail.com> | 2007-10-19 10:27:06 +0000 |
commit | ae553db3cdb71c3cc14ca02bf53d6a81ff99fb8a (patch) | |
tree | b2b536c0b36a40b5d5ea65df62b61c6301f27e34 /lib/sqlalchemy/sql/operators.py | |
parent | 974f59f091d562bb0e141c6b4087160d16190c1c (diff) | |
download | sqlalchemy-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.py | 3 |
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() |