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

[backport] qgspostgresprovider: Fix primary key retrieval with lowercase option #56259

Merged
merged 1 commit into from
Feb 8, 2024

Conversation

ptitjano
Copy link
Contributor

@ptitjano ptitjano commented Feb 8, 2024

This is a 3.34 backport of #56243

The lowercaseFieldNames allows to transform the column names to lowercase. If this option is enabled, then the requested primary key (primaryKey) is in lowercase but the fields are not. Therefore, the requested primary key will never be found.

This issue is fixed by converting the field names to lowercase when looking for the primary key if the option is enabled.

Closes: #55856

The `lowercaseFieldNames` allows to transform the column names to
lowercase. If this option is enabled, then the requested primary
key (`primaryKey`) is in lowercase but the `fields` are
not. Therefore, the requested primary key will never be found.

This issue is fixed by converting the field names to lowercase when
looking for the primary key if the option is enabled.

Closes: qgis#55856
@github-actions github-actions bot added this to the 3.34.4 milestone Feb 8, 2024
@nyalldawson nyalldawson merged commit 1a8f897 into qgis:release-3_34 Feb 8, 2024
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants