Bug report #10688

Cannot add anymore Views with proper PK from DB manager

Added by Giovanni Manghi over 6 years ago. Updated over 6 years ago.

Status:Closed
Priority:Severe/Regression
Assignee:-
Category:DB Manager
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:19085

Description

In QGIS master it is not possible to add anymore from DB Manager a VIEW that has a proper PK.

The error in the log (very hidden for the common user) is:

No key field for view given.
PostgreSQL layer has no primary key.

No issues at all with the same View in QGIS 2.2

Associated revisions

Revision 1949fd75
Added by Jürgen Fischer over 6 years ago

dbmanager: fix adding views to canvas (fixes #10688)

History

#1 Updated by Jürgen Fischer over 6 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF