Skip to content
Permalink
Browse files

More indentation

  • Loading branch information
nyalldawson committed Mar 20, 2021
1 parent 14fd257 commit f5be851a7c94fff26b3abd16b2d1d030052a1dca
Showing with 9 additions and 10 deletions.
  1. +9 −10 src/providers/postgres/raster/qgspostgresrasterprovider.cpp
@@ -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 )
{

0 comments on commit f5be851

Please sign in to comment.