Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[processing] Fix import to postgis alg when table name not set (fix #…
…15869, 15097)

(cherry-picked from 271e67e)
  • Loading branch information
nyalldawson committed Nov 23, 2016
1 parent 39ff97e commit a78efc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/qgis/ImportIntoPostGIS.py
Expand Up @@ -103,7 +103,7 @@ def processAlgorithm(self, progress):
table = self.getParameterValue(self.TABLENAME).strip()
if table == '':
table = layer.name()
table = "_".join(table.split(".")[:-1])
table = table.replace('.', '_')
table = table.replace(' ', '').lower()[0:62]
providerName = 'postgres'

Expand Down

0 comments on commit a78efc0

Please sign in to comment.