mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Properly schema qualify domains when reverse engineering SQL. Fixes #1865
This commit is contained in:
committed by
Dave Page
parent
67e5dfa5a7
commit
ca57323ad1
@@ -589,7 +589,7 @@ class DomainConstraintView(PGChildNodeView):
|
||||
"""
|
||||
|
||||
# Get Schema and Domain.
|
||||
domain, schema = self._get_domain(doid)
|
||||
schema, domain = self._get_domain(doid)
|
||||
|
||||
SQL = render_template("/".join([self.template_path,
|
||||
'properties.sql']),
|
||||
@@ -673,7 +673,7 @@ class DomainConstraintView(PGChildNodeView):
|
||||
data=data, o_data=old_data, conn=self.conn
|
||||
)
|
||||
else:
|
||||
domain, schema = self._get_domain(doid)
|
||||
schema, domain = self._get_domain(doid)
|
||||
|
||||
SQL = render_template("/".join([self.template_path,
|
||||
'create.sql']),
|
||||
@@ -698,7 +698,7 @@ class DomainConstraintView(PGChildNodeView):
|
||||
if not status:
|
||||
return False, internal_server_error(errormsg=res)
|
||||
|
||||
return res['rows'][0]
|
||||
return res['rows'][0]['schema'], res['rows'][0]['domain']
|
||||
|
||||
@check_precondition
|
||||
def dependents(self, gid, sid, did, scid, doid, coid):
|
||||
|
||||
Reference in New Issue
Block a user