UniqueConstraint named and escaped twice
This patch fixes get_constraint_name in the ANSIConstraintCommon class. It's part of the fixes needed for SQLA 0.9.x compat. Change-Id: I1f1648af48f459bd18f99bb42fa9a272186fb37d
This commit is contained in:
parent
21fcdad0f4
commit
98ae3ac832
@ -275,7 +275,7 @@ class ANSIConstraintCommon(AlterTableVisitor):
|
||||
ret = cons.name
|
||||
else:
|
||||
ret = cons.name = cons.autoname()
|
||||
return self.preparer.quote(ret, cons.quote)
|
||||
return ret
|
||||
|
||||
def visit_migrate_primary_key_constraint(self, *p, **k):
|
||||
self._visit_constraint(*p, **k)
|
||||
|
Loading…
x
Reference in New Issue
Block a user