Bug report #13710
postgis view layer with compound key lost on project reload
|Affected QGIS version:||master||Regression?:||No|
|Operating System:||Windows (OSgeo4W)||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||21737|
With QGIS 2.12, it is possible to load Postgis views with compound primary keys - a very useful feature. The Layers can be visualized and the attribute table is displayed correctly.
However, when loading a saved project file with such a layer, the layer is shown as defective and has to be manually added once again.
Postgis Layers for views with a single key field are loaded correctly.
An example project file with two sample layers is attached. Layer "test" (one pk field) loads correctly, layer "ViewGwStichtag" (two pk fields, both of type 'character varying') does not.