Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QGIS is assuming first column from Oracle DB is the primary key #29532

Open
qgib opened this issue Apr 1, 2019 · 1 comment
Open

QGIS is assuming first column from Oracle DB is the primary key #29532

qgib opened this issue Apr 1, 2019 · 1 comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Oracle data provider

Comments

@qgib
Copy link
Contributor

qgib commented Apr 1, 2019

Author Name: Belinda Baker (Belinda Baker)
Original Redmine Issue: 21717
Affected QGIS version: 3.4.0
Redmine category:data_provider/oracle
Assignee: Jürgen Fischer


When trying to load a table into Oracle with primary key GID (1st column) with non unique IDs, an error shows "Primary key field 'GID' for view not unique." when adding a new column ID with unique IDs (based on row numbers) as new primary key (last column) and using refresh icon in Browser pane, the same error message appears despite ID becoming new primary key. Oracle provider even retains previous information about Oracle PK's or is assuming the first column is PK.

@qgib
Copy link
Contributor Author

qgib commented Apr 1, 2019

Author Name: Belinda Baker (Belinda Baker)


Test scenario would be create table/view with non unique IDs in first column, set last column with unique IDs as primary key and see if Oracle message log in QGIS logs any error (especially Primary key field 'xxx' for view not unique.)

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Data Provider Related to specific vector, raster or mesh data providers labels May 25, 2019
@gioman gioman added Oracle data provider and removed Data Provider Related to specific vector, raster or mesh data providers labels Jan 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Oracle data provider
Projects
None yet
Development

No branches or pull requests

2 participants