Table names in postgresql can be max 63 characters long

This commit is contained in:
Csaba Sandor 2016-03-09 10:39:37 +01:00
parent de06cd7612
commit 48e20cf08f

View File

@ -104,7 +104,7 @@ class ImportIntoPostGIS(GeoAlgorithm):
table = self.getParameterValue(self.TABLENAME).strip()
if table == '':
table = layer.name()
table = table.replace(' ', '').lower()
table = table.replace(' ', '').lower()[0:62]
providerName = 'postgres'
try: