From 7b86a06d2d7e3e4d7e6b822f19d5085dfd948e09 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Mon, 26 Apr 2010 00:11:22 -0400 Subject: - Fixed errant space character when generating ADD CONSTRAINT for a named UNIQUE constraint. --- lib/sqlalchemy/sql/compiler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/sqlalchemy/sql') diff --git a/lib/sqlalchemy/sql/compiler.py b/lib/sqlalchemy/sql/compiler.py index 7a1821a70..0e5f3499e 100644 --- a/lib/sqlalchemy/sql/compiler.py +++ b/lib/sqlalchemy/sql/compiler.py @@ -1299,7 +1299,7 @@ class DDLCompiler(engine.Compiled): def visit_unique_constraint(self, constraint): text = "" if constraint.name is not None: - text += "CONSTRAINT %s " % self.preparer.format_constraint(constraint) + text += "CONSTRAINT %s" % self.preparer.format_constraint(constraint) text += " UNIQUE (%s)" % (', '.join(self.preparer.quote(c.name, c.quote) for c in constraint)) text += self.define_constraint_deferrability(constraint) return text -- cgit v1.2.1