fix error

Co-authored-by: Stefanos Natsis <uclaros@gmail.com>
This commit is contained in:
Jan Caha 2025-09-08 13:25:14 +02:00 committed by Nyall Dawson
parent 9b58c9d973
commit 9cddecd8be

View File

@ -5236,7 +5236,7 @@ QString QgsPostgresProvider::htmlMetadata() const
estimateRowCount = resRowCount.PQgetvalue( 0, 0 ).toLongLong();
}
const QString sqlSpatialIndex = QStringLiteral( "SELECT * FROM pg_indexes WHERE schemaname = %1 AND tablename = %2 AND indexdef LIKE USING %gist%'" )
const QString sqlSpatialIndex = QStringLiteral( "SELECT * FROM pg_indexes WHERE schemaname = %1 AND tablename = %2 AND indexdef LIKE 'USING %gist%'" )
.arg( QgsPostgresConn::quotedValue( mSchemaName ), QgsPostgresConn::quotedValue( mTableName ) );
QgsPostgresResult resSpatialIndexes( connectionRO()->LoggedPQexec( "QgsPostgresProvider", sqlSpatialIndex ) );