mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed an issue where table node is not getting added on UI if the same name table is present in another schema.
This commit is contained in:
@@ -984,6 +984,7 @@ class TableView(BaseTableView, DataTypeReader, SchemaDiffTableCompare):
|
||||
sql = render_template(
|
||||
"/".join([self.table_template_path, self._GET_SCHEMA_OID_SQL]),
|
||||
tname=data['name'],
|
||||
sname=data['schema'],
|
||||
conn=self.conn
|
||||
)
|
||||
|
||||
|
||||
@@ -8,5 +8,5 @@ WHERE
|
||||
{% if tid %}
|
||||
c.oid = {{tid}}::oid;
|
||||
{% else %}
|
||||
c.relname = {{tname|qtLiteral(conn)}}::text;
|
||||
c.relname = {{tname|qtLiteral(conn)}}::text AND nspname = {{sname|qtLiteral(conn)}};
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user