summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/compiler.py
diff options
context:
space:
mode:
authorjakeogh <github.com@v6y.net>2015-06-27 18:37:09 +0000
committerjakeogh <github.com@v6y.net>2015-06-27 18:37:09 +0000
commitad7caa69884bddf6f35da2facc516ab08904c71e (patch)
tree75b3af57694a2a773b105f179fb5e45deaf3bd42 /lib/sqlalchemy/sql/compiler.py
parentf31c288b65281511338c518bdf7fbe78c985af58 (diff)
downloadsqlalchemy-ad7caa69884bddf6f35da2facc516ab08904c71e.tar.gz
add MAXVALUE support to Sequence()
Diffstat (limited to 'lib/sqlalchemy/sql/compiler.py')
-rw-r--r--lib/sqlalchemy/sql/compiler.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sqlalchemy/sql/compiler.py b/lib/sqlalchemy/sql/compiler.py
index b8cf32dff..b3fee60ec 100644
--- a/lib/sqlalchemy/sql/compiler.py
+++ b/lib/sqlalchemy/sql/compiler.py
@@ -2301,6 +2301,8 @@ class DDLCompiler(Compiled):
text += " START WITH %d" % create.element.start
if create.element.minvalue is not None:
text += " MINVALUE %d" % create.element.minvalue
+ if create.element.maxvalue is not None:
+ text += " MAXVALUE %d" % create.element.maxvalue
return text
def visit_drop_sequence(self, drop):