Skip to content

Commit a78efc0

Browse files
committedNov 23, 2016
[processing] Fix import to postgis alg when table name not set (fix #15869, 15097)
(cherry-picked from 271e67e)
1 parent 39ff97e commit a78efc0

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
@@ -103,7 +103,7 @@ def processAlgorithm(self, progress):
103103
table = self.getParameterValue(self.TABLENAME).strip()
104104
if table == '':
105105
table = layer.name()
106-
table = "_".join(table.split(".")[:-1])
106+
table = table.replace('.', '_')
107107
table = table.replace(' ', '').lower()[0:62]
108108
providerName = 'postgres'
109109

0 commit comments

Comments
 (0)
Please sign in to comment.