Fixed an issue where table node is not getting added on UI if the same name table is present in another schema.
parent
23eaa47fea
commit
35cbe968f4
|
|
@ -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 %}
|
||||
|
|
|
|||
Loading…
Reference in New Issue