mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-10-12 16:11:59 -05:00
Properly generate exclusion constraint SQL. Fixes #1861
This commit is contained in:
1 parent
9155c2111f
commit
6874a1a247
1 file changed
+1
-1
+1
-1
@@ -804,7 +804,7 @@ class ExclusionConstraintView(PGChildNodeView):
|
||||
sql = render_template("/".join([self.template_path, 'create.sql']),
|
||||
data=data, conn=self.conn)
|
||||
|
||||
return sql
|
||||
return sql, data['name'] if 'name' in data else old_data['name']
|
||||
|
||||
@check_precondition
|
||||
def sql(self, gid, sid, did, scid, tid, exid=None):
|
||||
|
||||
Reference in new issue
Block a user