summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/compiler.py
diff options
context:
space:
mode:
authorjakeogh <github.com@v6y.net>2015-06-27 20:49:46 +0000
committerjakeogh <github.com@v6y.net>2015-06-27 20:49:46 +0000
commit66b9a71ce7457b618e9040c1c0bbc2dbd1966354 (patch)
treedebc66cd8a536749d7c7e7ff3145eef1aac1fdcd /lib/sqlalchemy/sql/compiler.py
parent85ebe01349e0b4314d9e25cacc6701d6fed7b87e (diff)
downloadsqlalchemy-pr/186.tar.gz
add CYCLE support to Sequence() and docstrings for NO MINVALUE and NO MAXVALUEpr/186
Diffstat (limited to 'lib/sqlalchemy/sql/compiler.py')
-rw-r--r--lib/sqlalchemy/sql/compiler.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/sqlalchemy/sql/compiler.py b/lib/sqlalchemy/sql/compiler.py
index f7aa02105..d2fa1d553 100644
--- a/lib/sqlalchemy/sql/compiler.py
+++ b/lib/sqlalchemy/sql/compiler.py
@@ -2304,9 +2304,11 @@ class DDLCompiler(Compiled):
if create.element.maxvalue is not None:
text += " MAXVALUE %d" % create.element.maxvalue
if create.element.nominvalue is not None:
- text += " NO MINVALUE" % create.element.nominvalue
+ text += " NO MINVALUE"
if create.element.nomaxvalue is not None:
- text += " NO MAXVALUE" % create.element.nomaxvalue
+ text += " NO MAXVALUE"
+ if create.element.cycle is not None:
+ text += " CYCLE"
return text
def visit_drop_sequence(self, drop):