diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-01-18 15:06:08 -0500 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-01-18 15:06:08 -0500 |
| commit | 6e4fd0aea858338deca58f0e41bb01a584a79d39 (patch) | |
| tree | a28e94a3d578ff49ea469abd33a2aab526d7445f /lib/sqlalchemy/sql | |
| parent | 931655f41743a99521f60ebbd0b9199422099013 (diff) | |
| parent | cf8e5e3cf5b0e1be05a611c8828690acfcd2b9fa (diff) | |
| download | sqlalchemy-6e4fd0aea858338deca58f0e41bb01a584a79d39.tar.gz | |
Merge branch 'patch-msql-pkc-clustered' of bitbucket.org:dharland/sqlalchemy into m
Diffstat (limited to 'lib/sqlalchemy/sql')
| -rw-r--r-- | lib/sqlalchemy/sql/compiler.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sqlalchemy/sql/compiler.py b/lib/sqlalchemy/sql/compiler.py index ade3c623a..5c5bfad55 100644 --- a/lib/sqlalchemy/sql/compiler.py +++ b/lib/sqlalchemy/sql/compiler.py @@ -2511,6 +2511,8 @@ class DDLCompiler(Compiled): return preparer.format_table(table) def visit_unique_constraint(self, constraint): + if len(constraint) == 0: + return '' text = "" if constraint.name is not None: text += "CONSTRAINT %s " % \ |
