Skip to content

Commit

Permalink
More indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Mar 20, 2021
1 parent 14fd257 commit f5be851
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions src/providers/postgres/raster/qgspostgresrasterprovider.cpp
Expand Up @@ -1824,16 +1824,15 @@ bool QgsPostgresRasterProvider::loadFields()
&& defValMap[tableoid][attnum].isEmpty() )
{
const QString seqName { mTableName + '_' + fieldName + QStringLiteral( "_seq" ) };
const QString seqSql { QStringLiteral( "SELECT c.oid "
" FROM pg_class c "
" LEFT JOIN pg_namespace n "
" ON ( n.oid = c.relnamespace ) "
" WHERE c.relkind = 'S' "
" AND c.relname = %1 "
" AND n.nspname = %2" )
.arg( quotedValue( seqName ) )
.arg( quotedValue( mSchemaName ) )
};
const QString seqSql = QStringLiteral( "SELECT c.oid "
" FROM pg_class c "
" LEFT JOIN pg_namespace n "
" ON ( n.oid = c.relnamespace ) "
" WHERE c.relkind = 'S' "
" AND c.relname = %1 "
" AND n.nspname = %2" )
.arg( quotedValue( seqName ),
quotedValue( mSchemaName ) );
QgsPostgresResult seqResult( connectionRO()->PQexec( seqSql ) );
if ( seqResult.PQntuples() == 1 )
{
Expand Down

0 comments on commit f5be851

Please sign in to comment.