mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
domain node: id and pid is not being generated. Fixes #1586
This commit is contained in:
parent
e016869ad5
commit
05473a7a35
@ -523,12 +523,10 @@ AND relkind != 'c'))"""
|
||||
'get_oid.sql']),
|
||||
basensp=data['basensp'],
|
||||
name=data['name'])
|
||||
status, res = self.conn.execute_2darray(SQL)
|
||||
status, doid = self.conn.execute_scalar(SQL)
|
||||
if not status:
|
||||
return internal_server_error(errormsg=res)
|
||||
|
||||
doid, scid = res['rows'][0]
|
||||
|
||||
return jsonify(
|
||||
node=self.blueprint.generate_browser_node(
|
||||
doid,
|
||||
|
@ -7,7 +7,7 @@ WHERE
|
||||
d.oid={{ doid }}::oid;
|
||||
{% else %}
|
||||
SELECT
|
||||
d.oid, d.typnamespace
|
||||
d.oid
|
||||
FROM
|
||||
pg_type d
|
||||
JOIN
|
||||
|
@ -7,7 +7,7 @@ WHERE
|
||||
d.oid={{ doid }}::oid;
|
||||
{% else %}
|
||||
SELECT
|
||||
d.oid, d.typnamespace
|
||||
d.oid
|
||||
FROM
|
||||
pg_type d
|
||||
JOIN
|
||||
|
Loading…
Reference in New Issue
Block a user