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

GeoPackage: Error when adding fields #26840

Closed
qgib opened this issue May 23, 2018 · 4 comments
Closed

GeoPackage: Error when adding fields #26840

qgib opened this issue May 23, 2018 · 4 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Data Provider Related to specific vector, raster or mesh data providers High Priority

Comments

@qgib
Copy link
Contributor

qgib commented May 23, 2018

Author Name: Jérôme Guélat (Jérôme Guélat)
Original Redmine Issue: 19009
Affected QGIS version: 3.0.3
Redmine category:data_provider/ogr
Assignee: Even Rouault


I get an error when saving edits after adding more than one field to a GeoPackage

  1. Open the attached GeoPackage
  2. In the attribute table, click on "Open field calculator", inside the field calculator add an integer field with some value
  3. Stop editing and save edits
  4. Repeat step 2
  5. Repeat step 3

I get the following error message:

Errors: SUCCESS: 1 attribute(s) added.
ERROR: field with index 1 is not the same!
Provider: ogr
Storage: GPKG
expected field: name=adfsd type=int typeName=Integer len=10 precision=0
retrieved field: name=adfsd type=int typeName=Integer len=0 precision=0

I'm using QGIS 3.0.3 (with GDAL/OGR 2.2.4), installed with OSGeo4W.


@qgib
Copy link
Contributor Author

qgib commented May 23, 2018

Author Name: Jérôme Guélat (Jérôme Guélat)


The bug is also occurring on QGIS 2.18.20 (tested on different computers)

@qgib
Copy link
Contributor Author

qgib commented May 23, 2018

Author Name: Jérôme Guélat (Jérôme Guélat)


This bug looks similar to https://issues.qgis.org/issues/15614

@qgib
Copy link
Contributor Author

qgib commented May 31, 2018

Author Name: Even Rouault (@rouault)


  • assigned_to_id was configured as Even Rouault

@qgib
Copy link
Contributor Author

qgib commented Jun 1, 2018

Author Name: Even Rouault (@rouault)


Applied in changeset f4bf1ec.


  • done_ratio was changed from 0 to 100
  • status_id was changed from Open to Closed

@qgib qgib closed this as completed Jun 1, 2018
@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority Data Provider Related to specific vector, raster or mesh data providers labels May 25, 2019
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! Data Provider Related to specific vector, raster or mesh data providers High Priority
Projects
None yet
Development

No branches or pull requests

1 participant