summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/databases/sybase.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqlalchemy/databases/sybase.py')
-rw-r--r--lib/sqlalchemy/databases/sybase.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/databases/sybase.py b/lib/sqlalchemy/databases/sybase.py
index 5c64ec1ae..b464a3bcb 100644
--- a/lib/sqlalchemy/databases/sybase.py
+++ b/lib/sqlalchemy/databases/sybase.py
@@ -798,7 +798,7 @@ class SybaseSQLCompiler(compiler.DefaultCompiler):
order_by = self.process(select._order_by_clause)
# SybaseSQL only allows ORDER BY in subqueries if there is a LIMIT
- if order_by and (not self.is_subquery(select) or select._limit):
+ if order_by and (not self.is_subquery() or select._limit):
return " ORDER BY " + order_by
else:
return ""