Skip to content
Permalink
Browse files

More indentation

  • Loading branch information
nyalldawson committed Mar 20, 2021
1 parent 2a9d2b0 commit 14fd257c261bba90a56c2aa76a9cc20ea83c9793
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/providers/postgres/raster/qgspostgresrasterprovider.cpp
@@ -1098,11 +1098,11 @@ bool QgsPostgresRasterProvider::init()
if ( hexAscii.isEmpty() || ! p.fromWkb( ptr ) )
{
// Try to determine extent from raster
const QString extentSql { QStringLiteral( "SELECT ST_Envelope( %1 ) "
"FROM %2 WHERE %3" )
.arg( quotedIdentifier( mRasterColumn ) )
.arg( mQuery )
.arg( subsetString().isEmpty() ? "'t'" : subsetString() ) };
const QString extentSql = QStringLiteral( "SELECT ST_Envelope( %1 ) "
"FROM %2 WHERE %3" )
.arg( quotedIdentifier( mRasterColumn ),
mQuery,
subsetString().isEmpty() ? "'t'" : subsetString() );

QgsPostgresResult extentResult( connectionRO()->PQexec( extentSql ) );
const QByteArray extentHexAscii { extentResult.PQgetvalue( 0, 0 ).toLatin1() };

0 comments on commit 14fd257

Please sign in to comment.