Skip to content

Commit

Permalink
[Oracle] FeatureItrator: do not request all attributes if subset is e…
Browse files Browse the repository at this point in the history
…mpty

Like the PostgreSQL provider, it is not necessary to request all the attributes if the request subset of attributes is empty.
  • Loading branch information
rldhont committed Jul 16, 2019
1 parent e8bdcd4 commit 885bf19
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/providers/oracle/qgsoraclefeatureiterator.cpp
Expand Up @@ -57,8 +57,6 @@ QgsOracleFeatureIterator::QgsOracleFeatureIterator( QgsOracleFeatureSource *sour
if ( mRequest.flags() & QgsFeatureRequest::SubsetOfAttributes )
{
mAttributeList = mRequest.subsetOfAttributes();
if ( mAttributeList.isEmpty() )
mAttributeList = mSource->mFields.allAttributesList();

// ensure that all attributes required for expression filter are being fetched
if ( mRequest.filterType() == QgsFeatureRequest::FilterExpression )
Expand Down

0 comments on commit 885bf19

Please sign in to comment.