mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Properly generate exclusion constraint SQL. Fixes #1861
This commit is contained in:
parent
9155c2111f
commit
6874a1a247
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user