summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql.py
diff options
context:
space:
mode:
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):