mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-03 00:04:47 -04:00
simplify args use
This commit is contained in:
parent
9d369ed282
commit
fb9429fb20
@ -5182,8 +5182,7 @@ QString QgsPostgresProvider::htmlMetadata() const
|
||||
{
|
||||
const QString sqlTableOid = QStringLiteral( "SELECT oid FROM pg_class "
|
||||
"WHERE relname = %1 AND relnamespace = %2::regnamespace;" )
|
||||
.arg( QgsPostgresConn::quotedValue( mTableName ) )
|
||||
.arg( QgsPostgresConn::quotedValue( mSchemaName ) );
|
||||
.arg( QgsPostgresConn::quotedValue( mTableName ), QgsPostgresConn::quotedValue( mSchemaName ) );
|
||||
|
||||
QgsPostgresResult resTableOid( connectionRO()->LoggedPQexec( "QgsPostgresProvider", sqlTableOid ) );
|
||||
|
||||
@ -5194,7 +5193,7 @@ QString QgsPostgresProvider::htmlMetadata() const
|
||||
|
||||
qlonglong tableOid = resTableOid.PQgetvalue( 0, 0 ).toLongLong();
|
||||
|
||||
const QString fullName = QStringLiteral( "%1.%2" ).arg( mSchemaName ).arg( mTableName );
|
||||
const QString fullName = QStringLiteral( "%1.%2" ).arg( mSchemaName, mTableName );
|
||||
|
||||
const QString sqlPrivileges = QStringLiteral( "SELECT "
|
||||
"has_table_privilege(%1, 'SELECT'), "
|
||||
@ -5240,8 +5239,7 @@ QString QgsPostgresProvider::htmlMetadata() const
|
||||
}
|
||||
|
||||
const QString sqlSpatialIndex = QStringLiteral( "SELECT * FROM pg_indexes WHERE schemaname = %1 AND tablename = %2 AND indexdef LIKE '%gist%'" )
|
||||
.arg( QgsPostgresConn::quotedValue( mSchemaName ) )
|
||||
.arg( QgsPostgresConn::quotedValue( mTableName ) );
|
||||
.arg( QgsPostgresConn::quotedValue( mSchemaName ), QgsPostgresConn::quotedValue( mTableName ) );
|
||||
|
||||
QgsPostgresResult resSpatialIndexes( connectionRO()->LoggedPQexec( "QgsPostgresProvider", sqlSpatialIndex ) );
|
||||
QString spatialIndexText = tr( "No spatial index." );
|
||||
|
Loading…
x
Reference in New Issue
Block a user