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 queued_ltr_backports] OGR Field domain creation: properly convert QVariant to expect OGR data type #53349

Merged
merged 2 commits into from Jun 9, 2023

Conversation

qgis-bot
Copy link
Collaborator

@qgis-bot qgis-bot commented Jun 4, 2023

Backport #53314
Authored by: @rouault

@github-actions github-actions bot added this to the 3.32.0 milestone Jun 4, 2023
rouault and others added 2 commits June 9, 2023 08:53
…ta type (fixes #52318)

This fixes the main issues: crashes / data corruption.

Note however that currently the GeoPackage driver doesn't really support
storing the data type of a field domain, so on reading, range domains
are always read as of type Real (unless there is a layer field
associated with that domain). An idea could be to (ab)use the
description field of the GeoPackage system table to include a
conventional suffix like " (type Integer)" that would be automatically
set and stripped off by the OGR GPKG driver.

It could also be nice that the QGIS GUI only proposes types that make
sense for the underlying provider, but there's a lack of infrastructure
for that.
@nyalldawson nyalldawson force-pushed the backport-53314-to-queued_ltr_backports branch from 013fe12 to 8eb92ee Compare June 8, 2023 22:59
@nyalldawson nyalldawson changed the base branch from queued_ltr_backports to release-3_28 June 8, 2023 22:59
@nyalldawson nyalldawson merged commit a1604de into release-3_28 Jun 9, 2023
24 checks passed
@nyalldawson nyalldawson deleted the backport-53314-to-queued_ltr_backports branch June 9, 2023 03:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants