Skip to content
Permalink
Browse files

Group conditions

  • Loading branch information
pblottiere committed Nov 14, 2017
1 parent 74e3323 commit fba8e84e5e1f751343a43b447dd66aa24720ea28
Showing with 4 additions and 10 deletions.
  1. +4 −10 src/providers/virtual/qgsvirtuallayerfeatureiterator.cpp
@@ -253,17 +253,11 @@ bool QgsVirtualLayerFeatureIterator::fetchFeature( QgsFeature &feature )

feature.setFields( mSource->mFields, /* init */ true );

if ( mSource->mDefinition.uid().isNull() )
if ( mSource->mDefinition.uid().isNull() &&
mRequest.filterType() != QgsFeatureRequest::FilterFid )
{
if ( mRequest.filterType() == QgsFeatureRequest::FilterFid )
{
feature.setId( mQuery->columnInt64( 0 ) );
}
else
{
// no id column => autoincrement
feature.setId( mFid++ );
}
// no id column => autoincrement
feature.setId( mFid++ );
}
else
{

0 comments on commit fba8e84

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