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:
Nikhil Mohite
2023-04-27 11:57:55 +05:30
committed by GitHub
parent 23eaa47fea
commit 35cbe968f4
2 changed files with 2 additions and 1 deletions

View File

@@ -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
)

View File

@@ -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 %}