We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent f5a9e6b commit 15d2b36Copy full SHA for 15d2b36
src/providers/oracle/qgsoraclefeatureiterator.cpp
@@ -57,6 +57,14 @@ QgsOracleFeatureIterator::QgsOracleFeatureIterator( QgsOracleFeatureSource* sour
57
}
58
59
60
+ // ensure that all attributes required for order by are fetched
61
+ const QSet< QString > orderByAttributes = mRequest.orderBy().usedAttributes();
62
+ for ( const QString &attr : orderByAttributes )
63
+ {
64
+ int attrIndex = mSource->mFields.fieldNameIndex( attr );
65
+ if ( !mAttributeList.contains( attrIndex ) )
66
+ mAttributeList << attrIndex;
67
+ }
68
69
else
70
mAttributeList = mSource->mFields.allAttributesList();
0 commit comments