mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
[processing] Fix import to postgis alg when table name not set (fix #15869, 15097)
This commit is contained in:
parent
3dcf03cf54
commit
271e67e37b
@ -105,7 +105,7 @@ class ImportIntoPostGIS(GeoAlgorithm):
|
||||
table.strip()
|
||||
if not table or table == '':
|
||||
table = layer.name()
|
||||
table = "_".join(table.split(".")[:-1])
|
||||
table = table.replace('.', '_')
|
||||
table = table.replace(' ', '').lower()[0:62]
|
||||
providerName = 'postgres'
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user