mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-09 23:15:58 -06:00
Fixed minor issue in SQL autocomplete.
This commit is contained in:
parent
d6c4911135
commit
fd2c2c4ff7
@ -327,6 +327,13 @@ class SQLAutoComplete(object):
|
||||
parentschema, childschema = e([fk.parentschema, fk.childschema])
|
||||
parenttable, childtable = e([fk.parenttable, fk.childtable])
|
||||
childcol, parcol = e([fk.childcolumn, fk.parentcolumn])
|
||||
|
||||
if childtable not in meta[childschema] or \
|
||||
parenttable not in meta[parentschema] or \
|
||||
childcol not in meta[childschema][childtable] or \
|
||||
parcol not in meta[parentschema][parenttable]:
|
||||
continue
|
||||
|
||||
childcolmeta = meta[childschema][childtable][childcol]
|
||||
parcolmeta = meta[parentschema][parenttable][parcol]
|
||||
fk = ForeignKey(
|
||||
|
Loading…
Reference in New Issue
Block a user