Bug report #10688

Cannot add anymore Views with proper PK from DB manager

Added by Giovanni Manghi almost 10 years ago. Updated almost 10 years ago.

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


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 almost 10 years ago

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


#1 Updated by Jürgen Fischer almost 10 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF