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

GdalUtils.ogrLayerName not working anymore with geometryless tables #40662

Closed
ghtmtt opened this issue Dec 18, 2020 · 2 comments
Closed

GdalUtils.ogrLayerName not working anymore with geometryless tables #40662

ghtmtt opened this issue Dec 18, 2020 · 2 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! PyQGIS Related to the PyQGIS API Regression Something which used to work, but doesn't anymore

Comments

@ghtmtt
Copy link
Contributor

ghtmtt commented Dec 18, 2020

I don't know if something changed recently or if I hit a regression.

The following method GdalUtils.ogrLayerName(layer.dataProvider().dataSourceUri() is working fine always, meaning that it's returning a string like myschema.mytable with both geometry and geometryless tables in QGIS 3.10

The same method exact method with the same database is returning a complete string only if the layer is geometric, else it is returning only the schema name. I tried this on QGIS master (3.17)

@ghtmtt ghtmtt added the Won't fix By design, or won't be fixed for some other reason label Dec 18, 2020
@gioman gioman added Bug Either a bug report, or a bug fix. Let's hope for the latter! PyQGIS Related to the PyQGIS API Feedback Waiting on the submitter for answers and removed Won't fix By design, or won't be fixed for some other reason labels Dec 18, 2020
@gioman
Copy link
Contributor

gioman commented Dec 18, 2020

Can you please raise the question on the dev mailing list?

@gioman gioman added Regression Something which used to work, but doesn't anymore and removed Feedback Waiting on the submitter for answers labels Dec 27, 2020
@gioman gioman changed the title GdalUtils.ogrLayerName not working with no geometric tables GdalUtils.ogrLayerName not working anymore with geometryless tables Dec 27, 2020
@nyalldawson
Copy link
Collaborator

This isn't a bug -- it's internal api which isn't subject to the stable api guarantee, and is free to change behaviour whenever required.

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! PyQGIS Related to the PyQGIS API Regression Something which used to work, but doesn't anymore
Projects
None yet
Development

No branches or pull requests

3 participants