Bug report #8021
Wrong PK selected: unclear error message
|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 #:||16867|
If a wrong PK is selected, the error message does not refer to the PK (I understand it is probably not possible to know what exactly is
wrong), and the cursor indicates wrongly that something is being processed.
#2 Updated by Paolo Cavallini over 9 years ago
I select a table, and a field that is in fact not unique, so not a good PK candidate. If I try to load the table in this way, I get an error that does not state something like "The field you selected is not a suitable primary key", so it is difficult for the user to understand what is wrong.
Furthermore, the mouse cursor indicates some waiting state, but nothing is happening.