summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/compiler.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2013-11-28 22:25:09 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2013-11-28 22:25:09 -0500
commit4aaf3753d75c68050c136e734c29aae5ff9504b4 (patch)
tree21cf4c877fca83271447a7e1637a7876aa42f423 /lib/sqlalchemy/sql/compiler.py
parentbb60a8ad946dd331f546f06a156b7ebb87d1709d (diff)
downloadsqlalchemy-4aaf3753d75c68050c136e734c29aae5ff9504b4.tar.gz
- fix up rendering of "of"
- move out tests, dialect specific out of compiler, compiler tests use new API, legacy API tests in test_selecatble - add support for adaptation of ForUpdateArg, alias support in compilers
Diffstat (limited to 'lib/sqlalchemy/sql/compiler.py')
-rw-r--r--lib/sqlalchemy/sql/compiler.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/sqlalchemy/sql/compiler.py b/lib/sqlalchemy/sql/compiler.py
index 0fc99897e..3ba3957d6 100644
--- a/lib/sqlalchemy/sql/compiler.py
+++ b/lib/sqlalchemy/sql/compiler.py
@@ -1513,9 +1513,11 @@ class SQLCompiler(Compiled):
text += self.order_by_clause(select,
order_by_select=order_by_select, **kwargs)
+
if select._limit is not None or select._offset is not None:
text += self.limit_clause(select)
- if select._for_update_arg:
+
+ if select._for_update_arg is not None:
text += self.for_update_clause(select)
if self.ctes and \