Bug report #8021

Wrong PK selected: unclear error message

Added by Paolo Cavallini over 11 years ago. Updated almost 10 years ago.

Status:Closed
Priority:Normal
Assignee:Jürgen Fischer
Category:Data Provider/Oracle
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

Description

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.

History

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

  • Status changed from Open to Feedback

Please provide more information.

#2 Updated by Paolo Cavallini over 11 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.

#3 Updated by Jürgen Fischer over 11 years ago

Um, I was asking for more information - not to (slightly) rephrase the old ;)
Which error message do you get?

#4 Updated by Paolo Cavallini over 11 years ago

No access to the Oracle instance, sorry.

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

  • Status changed from Feedback to Closed

closing for the lack of feedback

#6 Updated by Paolo Cavallini almost 10 years ago

IMHO this should not be closed: the fix is easy, once the string is found, and the current situation is misleading for the user.

Also available in: Atom PDF