Skip to content

Commit

Permalink
Merge pull request #42993 from qgis/backport-42989-to-release-3_18
Browse files Browse the repository at this point in the history
[Backport release-3_18] [BUGFIX] Fixes QgsPostgresProviderConnection::createSpatialIndex.
  • Loading branch information
m-kuhn committed Apr 27, 2021
2 parents 3213c68 + b1086b5 commit eed3818
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/postgres/qgspostgresproviderconnection.cpp
Expand Up @@ -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 ) ) );
Expand Down

0 comments on commit eed3818

Please sign in to comment.