summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/operators.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2008-03-19 20:25:51 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2008-03-19 20:25:51 +0000
commit8d0c5672f06952382b4eedf78158a043b3529878 (patch)
tree39af04ae51edbe52cc73141de30febb028628c25 /lib/sqlalchemy/sql/operators.py
parent0cc04e6e1b70abc4817f275a898aa063da3de007 (diff)
downloadsqlalchemy-8d0c5672f06952382b4eedf78158a043b3529878.tar.gz
added escape kw arg to contains(), startswith(), endswith(), [ticket:791]
Diffstat (limited to 'lib/sqlalchemy/sql/operators.py')
-rw-r--r--lib/sqlalchemy/sql/operators.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/sqlalchemy/sql/operators.py b/lib/sqlalchemy/sql/operators.py
index 13f5e6131..0047d1c73 100644
--- a/lib/sqlalchemy/sql/operators.py
+++ b/lib/sqlalchemy/sql/operators.py
@@ -49,14 +49,14 @@ def notin_op(a, b):
def distinct_op(a):
return a.distinct()
-def startswith_op(a, b):
- return a.startswith(b)
+def startswith_op(a, b, escape=None):
+ return a.startswith(b, escape=escape)
-def endswith_op(a, b):
- return a.endswith(b)
+def endswith_op(a, b, escape=None):
+ return a.endswith(b, escape=escape)
-def contains_op(a, b):
- return a.contains(b)
+def contains_op(a, b, escape=None):
+ return a.contains(b, escape=escape)
def comma_op(a, b):
raise NotImplementedError()