Skip to content

Commit

Permalink
[processing] Fix import to postgis alg when table name not set (fix #…
Browse files Browse the repository at this point in the history
…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
Original file line number Diff line number Diff line change
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.