diff --git a/gui/wxpython/modules/import_export.py b/gui/wxpython/modules/import_export.py index 389ed98b8ac..f9a46d7e579 100644 --- a/gui/wxpython/modules/import_export.py +++ b/gui/wxpython/modules/import_export.py @@ -476,6 +476,7 @@ def OnRun(self, event): if self.dsnInput.GetType() == "dir": idsn = os.path.join(dsn, layer) elif self.dsnInput.GetType() == "db": + idsn = dsn if "PG:" in dsn: idsn = f"{dsn} table={layer}" else: