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

PG: identify pk when exporting #45375

Merged
merged 1 commit into from
Oct 4, 2021

Conversation

elpaso
Copy link
Contributor

@elpaso elpaso commented Oct 4, 2021

When exporting a layer, if no PK information is
passed in the destination URI, the first numeric field
with NOT NULL and UNIQUE constraints is considered to be
the primary key.

Partial fix for #45286

Notice that I'm not really sure this is a bugfix or a feature, feedback welcome.

When exporting a layer, if no PK information is
passed in the destination URI, the first numeric field
with NOT NULL and UNIQUE constraints is considered to be
the primary key.

Partial fix for qgis#45286
@elpaso elpaso added Bug Either a bug report, or a bug fix. Let's hope for the latter! PostGIS data provider labels Oct 4, 2021
@github-actions github-actions bot added this to the 3.22.0 milestone Oct 4, 2021
@nyalldawson nyalldawson merged commit a0af938 into qgis:master Oct 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! PostGIS data provider
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants