Skip to content

Commit d783635

Browse files
committedMay 26, 2016
[processing] homogenize spatial index name with DB Manager (fix #14899)
1 parent af20121 commit d783635

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎python/plugins/processing/algs/qgis/postgis_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ def create_index(self, table, name, column, schema=None):
649649

650650
def create_spatial_index(self, table, schema=None, geom_column='the_geom'):
651651
table_name = self._table_name(schema, table)
652-
idx_name = self._quote('sidx_' + table)
652+
idx_name = self._quote(u"sidx_%s_%s" % (table, geom_column))
653653
sql = 'CREATE INDEX %s ON %s USING GIST(%s)' % (idx_name, table_name,
654654
self._quote(geom_column))
655655
self._exec_sql_and_commit(sql)

0 commit comments

Comments
 (0)
Please sign in to comment.