Skip to content

Commit

Permalink
Merge pull request #79 from HusseinKabbout/master
Browse files Browse the repository at this point in the history
Check database connection on jointables to make sure that the layer is a postgres layer
  • Loading branch information
manisandro authored Aug 20, 2024
2 parents 1beabcd + 072d7d6 commit 53b39d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config_generator/qgs_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ def __lookup_attribute_data_types(self, meta):
constraints = OrderedDict()

joinfield = fields.get(attr).get('joinfield')
if joinfield:
if joinfield and meta['jointables'][joinfield['table']]['database'] is not None:
jointable = joinfield['table']
jointablemeta = meta['jointables'][jointable]
if jointable not in joindbs:
Expand Down

0 comments on commit 53b39d0

Please sign in to comment.