QGIS/tests/testdata/provider/spatialite.db
Even Rouault bf7dffee6d QgsExpression::referencedAttributeIndexes(): only report valid indices
If the expression was referencing a non-existing field, -1 was returned in the
result set, which caused later crashed in various providers, including the
Spatialite, Postgres, etc..., due to tried to dereference mFields.at(-1)

Discarding invalid indices is what is also done in
QgsFeatureRequest::OrderBy::usedAttributeIndices()

Fixes #33878
2020-01-21 11:37:11 +10:00

4.8 MiB