QgsOgrFeatureIterator always fetch all feature attributtes but are unnecessary #17709
Labels
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
Data Provider
Related to specific vector, raster or mesh data providers
Milestone
Author Name: Alvaro Huarte (@ahuarte47)
Original Redmine Issue: 9062
Affected QGIS version: master
Redmine category:data_provider/ogr
Assignee: Alvaro Huarte
There is a bug in QgsOgrFeatureIterator::ensureRelevantFields(), the feature cursor always fetchs all attributes ignoring the relevant fields configuration of the feature request.
This method doesn´t assign the relevant fields of the ogrLayer managed in the feature cursor, it modifies the relevant field definition of a ogrLayer related in the provider.
The feature cursor works with unmodified configuration of the ogrLayer fetching all attributes from the related dataset.
The text was updated successfully, but these errors were encountered: