Fix support for QGIS v2.14 (previously getting out-of-range errors due to wrong field indices) as well as field mapping errors for QGIS v2.18 (e.g., value relations were being assigned to fields not involved in relations).
Without adding conrelid in the WHERE clause, queries inside both retrieveForeignCol() and retrieveNativeCol() can give you several field indices. The plugin seems to be choosing the last one, which only by chance might be the correct one.
Fix support for QGIS v2.14 (previously getting out-of-range errors due to wrong field indices) as well as field mapping errors for QGIS v2.18 (e.g., value relations were being assigned to fields not involved in relations).
Without adding
conrelid
in the WHERE clause, queries inside bothretrieveForeignCol()
andretrieveNativeCol()
can give you several field indices. The plugin seems to be choosing the last one, which only by chance might be the correct one.