summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2006-09-05 15:39:59 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2006-09-05 15:39:59 +0000
commitf3d72a71871180f6b7ea8f7a09094d9e22aa84fd (patch)
treea2e1ee13d8d887bbed94cbaa1865af1fd3bc066d /lib/sqlalchemy/sql.py
parent5bcb6e786f0c5848ba01b5115beb9d0d995f2e84 (diff)
downloadsqlalchemy-f3d72a71871180f6b7ea8f7a09094d9e22aa84fd.tar.gz
- unicode fix for startswith()/endswith() [ticket:296]
Diffstat (limited to 'lib/sqlalchemy/sql.py')
-rw-r--r--lib/sqlalchemy/sql.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqlalchemy/sql.py b/lib/sqlalchemy/sql.py
index d2e270c32..ab371dcb9 100644
--- a/lib/sqlalchemy/sql.py
+++ b/lib/sqlalchemy/sql.py
@@ -554,9 +554,9 @@ class CompareMixin(object):
# statement out of it.
return self._compare('IN', union(parens=True, *other))
def startswith(self, other):
- return self._compare('LIKE', str(other) + "%")
+ return self._compare('LIKE', other + "%")
def endswith(self, other):
- return self._compare('LIKE', "%" + str(other))
+ return self._compare('LIKE', "%" + other)
def label(self, name):
return Label(name, self, self.type)
def distinct(self):