Skip to content

Commit

Permalink
[processing] homogenize spatial index name with DB Manager (fix #14899)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed May 26, 2016
1 parent af20121 commit d783635
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/qgis/postgis_utils.py
Expand Up @@ -649,7 +649,7 @@ def create_index(self, table, name, column, schema=None):

def create_spatial_index(self, table, schema=None, geom_column='the_geom'):
table_name = self._table_name(schema, table)
idx_name = self._quote('sidx_' + table)
idx_name = self._quote(u"sidx_%s_%s" % (table, geom_column))
sql = 'CREATE INDEX %s ON %s USING GIST(%s)' % (idx_name, table_name,
self._quote(geom_column))
self._exec_sql_and_commit(sql)
Expand Down

0 comments on commit d783635

Please sign in to comment.