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

Fixes DB manager queries with duplicated field names #36831

Merged

Conversation

elpaso
Copy link
Contributor

@elpaso elpaso commented May 29, 2020

This is probably a missing API in the provider metadata, we should not use QgsVectorLayer just to extract the information about fields, but for now returning a valid query layer in these corner cases it's probably the best we can do, the layer is just used to extract fields information and thrown away.

Fixes #36205

@elpaso elpaso added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label May 29, 2020
@github-actions github-actions bot added this to the 3.14.0 milestone May 29, 2020
@elpaso elpaso merged commit e0d7d67 into qgis:master Jun 2, 2020
@elpaso elpaso deleted the bugfix-36205-db-manager-duplicated-fields-queries branch June 2, 2020 06:33
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!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DB Manager does not show anymore query results when there are duplicated field names
1 participant