Skip to content
Permalink
Browse files

Fix QgsFeatureRequest with expression not using provider fields

and limit (fix #15771)

(cherry-picked from 5e3bef7)
  • Loading branch information
nyalldawson committed Nov 23, 2016
1 parent ddb2882 commit cfeeb3fd4b156e093d84264497ec1fa8f85aa999
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/core/qgsvectorlayerfeatureiterator.cpp
@@ -161,6 +161,8 @@ QgsVectorLayerFeatureIterator::QgsVectorLayerFeatureIterator( QgsVectorLayerFeat
if ( source->mFields.fieldOrigin( idx ) != QgsFields::OriginProvider )
{
mProviderRequest.disableFilter();
// can't limit at provider side
mProviderRequest.setLimit( -1 );
}
}
}

0 comments on commit cfeeb3f

Please sign in to comment.
You can’t perform that action at this time.