Feature request #16432

Update the field list in layer.dataProvider().forceReload()

Added by Borys Jurgiel 14 days ago.

Status:Open Start Date:04/10/2017
Priority:Normal Due date:
Assigned to:- % Done:

0%

Category:Data Provider
Target version:Version 3.0
Platform: Resolution:
Platform version: Pull Request or Patch supplied:No
Status info: Tag:

Description

Once you load e.g. postgis table into QGIS, there is no way to reload its fields (e.g. after adding a column via psycopg or other concurrent connection), except reloading the whole project of course. The layer.dataProvider().forceReload() assumes the fields structure is constant and only reloads the records.

I noticed it when working with PostGIS, but I suspect it's a provider-independent issue.

Also available in: Atom