Bug report #8148
add warning when trying add to canvas a view without a primary key
Status: | Closed | ||
---|---|---|---|
Priority: | High | ||
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 #: | 16976 |
Description
When trying to add in the canvas a view without a primary key using DB Manager it will fail "silently"***
A error message is issued in the log, but the user can easily miss it.
When adding such view using the standard "add postgis layer" dialog now QGIS issues a much more clear warning that would be nice to be used also for DB Manager:
Associated revisions
db manager: show error message in bar when adding a layer fails (fixes #8148)
History
#1 Updated by Giovanni Manghi over 10 years ago
- Affected QGIS version set to master
- Priority changed from Normal to High
- Tracker changed from Feature request to Bug report
- Crashes QGIS or corrupts data set to No
- Target version changed from Future Release - Nice to have to Future Release - High Priority
this is a bug, not a feature request.
I should even be a blocker as in the past it was working as expected (I add that many users are finding this new behavior very confusing, especially because in the past was more straightforward).
add a clear message is the least can be done, allowing add views without pk it would be the right thing to do.
#2 Updated by Jürgen Fischer about 10 years ago
- Subject changed from DB Manager, add warning when trying add to canvas a view without a primary key to add warning when trying add to canvas a view without a primary key
#3 Updated by Jürgen Fischer about 10 years ago
- Status changed from Open to Closed
Fixed in changeset 0a875d3e819750fa4e0240a3d48459ac615bb03b.