mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-02 00:02:12 -05:00
Group conditions
This commit is contained in:
parent
74e3323db6
commit
fba8e84e5e
@ -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
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user