Skip to content

Commit 271e67e

Browse files
committed
[processing] Fix import to postgis alg when table name not set (fix #15869, 15097)
1 parent 3dcf03c commit 271e67e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/plugins/processing/algs/qgis/ImportIntoPostGIS.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def processAlgorithm(self, progress):
105105
table.strip()
106106
if not table or table == '':
107107
table = layer.name()
108-
table = "_".join(table.split(".")[:-1])
108+
table = table.replace('.', '_')
109109
table = table.replace(' ', '').lower()[0:62]
110110
providerName = 'postgres'
111111

0 commit comments

Comments
 (0)