Skip to content
Permalink
Browse files

[processing] homogenize spatial index name with DB Manager (fix #14899)

  • Loading branch information
alexbruy committed May 26, 2016
1 parent af20121 commit d783635a400ffda955df5ed76d6d15542d0e407c
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/plugins/processing/algs/qgis/postgis_utils.py
@@ -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)

0 comments on commit d783635

Please sign in to comment.
You can’t perform that action at this time.