summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/compiler.py
diff options
context:
space:
mode:
authormike bayer <mike_mp@zzzcomputing.com>2017-07-06 09:03:29 -0400
committerGerrit Code Review <gerrit@awstats.zzzcomputing.com>2017-07-06 09:03:29 -0400
commit79285a0f466279f786bcfec89f5a202fb2085d9a (patch)
tree9f35173bea110aef52bd193c723f20a060f4e9f3 /lib/sqlalchemy/sql/compiler.py
parent35ab498a87398e537594a639145bfbba74795476 (diff)
parentfaa6609dac2ce6e55e0f690df3ba88c13133ec5c (diff)
downloadsqlalchemy-79285a0f466279f786bcfec89f5a202fb2085d9a.tar.gz
Merge "Add support for CACHE and ORDER to sequences"
Diffstat (limited to 'lib/sqlalchemy/sql/compiler.py')
-rw-r--r--lib/sqlalchemy/sql/compiler.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/sqlalchemy/sql/compiler.py b/lib/sqlalchemy/sql/compiler.py
index 6da064797..53009e2df 100644
--- a/lib/sqlalchemy/sql/compiler.py
+++ b/lib/sqlalchemy/sql/compiler.py
@@ -2560,6 +2560,10 @@ class DDLCompiler(Compiled):
text += " NO MINVALUE"
if create.element.nomaxvalue is not None:
text += " NO MAXVALUE"
+ if create.element.cache is not None:
+ text += " CACHE %d" % create.element.cache
+ if create.element.order is True:
+ text += " ORDER"
if create.element.cycle is not None:
text += " CYCLE"
return text