Skip to content
Permalink
Browse files

Fix table join (fix #7068)

  • Loading branch information
minorua committed Mar 27, 2013
1 parent 87265c7 commit 3959f94f8c1db15273d6acc5696bb94405129f24
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/core/qgsvectorlayerfeatureiterator.cpp
@@ -310,10 +310,12 @@ void QgsVectorLayerFeatureIterator::prepareJoins()
{
FetchJoinInfo info;
info.joinInfo = joinInfo;
info.indexOffset = *attIt - sourceLayerIndex;
info.joinLayer = joinLayer;
info.targetField = fields.indexFromName( joinInfo->targetFieldName );
info.joinField = joinLayer->pendingFields().indexFromName( joinInfo->joinFieldName );
info.indexOffset = *attIt - sourceLayerIndex;
if ( info.joinField < sourceLayerIndex )
info.indexOffset++;

// for joined fields, we always need to request the targetField from the provider too
if ( !fetchAttributes.contains( info.targetField ) )

0 comments on commit 3959f94

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