Skip to content
Permalink
Browse files
Merge pull request #42989 from lbartoletti/fix_index_importpgsql
[BUGFIX] Fixes QgsPostgresProviderConnection::createSpatialIndex.
  • Loading branch information
m-kuhn committed Apr 27, 2021
2 parents 98a9ab7 + 36a9063 commit cd3493bbaa42b69ef27be492a8065bcbaea2dfe9
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/postgres/qgspostgresproviderconnection.cpp
@@ -453,7 +453,7 @@ void QgsPostgresProviderConnection::createSpatialIndex( const QString &schema, c

const QString indexName = QStringLiteral( "sidx_%1_%2" ).arg( name, geometryColumnName );
executeSql( QStringLiteral( "CREATE INDEX %1 ON %2.%3 USING GIST (%4);" )
.arg( indexName,
.arg( QgsPostgresConn::quotedIdentifier( indexName ),
QgsPostgresConn::quotedIdentifier( schema ),
QgsPostgresConn::quotedIdentifier( name ),
QgsPostgresConn::quotedIdentifier( geometryColumnName ) ) );

0 comments on commit cd3493b

Please sign in to comment.