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

Field calculator error with spatialite layer #23932

Closed
qgib opened this issue Dec 28, 2016 · 3 comments
Closed

Field calculator error with spatialite layer #23932

qgib opened this issue Dec 28, 2016 · 3 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter!

Comments

@qgib
Copy link
Contributor

qgib commented Dec 28, 2016

Author Name: Andrew McAninch (@spaceof7)
Original Redmine Issue: 16017
Affected QGIS version: 2.18.2
Redmine category:unknown


I am using OSGEO4W QGIS 2.18.2. When I try to save edits after using the field calculator to calculate a field with a name that has capital letters, QGIS give the follow error:

1 Commit errors:
SUCCESS: 1 attribute(s) added.
ERROR: field with index 17 is not the same!
Provider: ogr
Storage: SQLite
expected field: name=WFC_wt type=QString typeName=string len=4 precision=0
retrieved field: name=wfc_wt type=QString typeName=String len=4 precision=0

Clearly I should just not use capital letters in a spatialite field name, but I use a variety of formats and would like to not have remind myself to check first.

@qgib
Copy link
Contributor Author

qgib commented Apr 30, 2017

Author Name: Giovanni Manghi (@gioman)


  • easy_fix was configured as 0
  • regression was configured as 0

@qgib
Copy link
Contributor Author

qgib commented Sep 22, 2017

Author Name: Jürgen Fischer (@jef-n)


  • category_id was configured as Unknown

@qgib
Copy link
Contributor Author

qgib commented Feb 23, 2019

Author Name: matteo ghetta (@ghtmtt)


Tested in 3.5 and works.


  • resolution was changed from to fixed/implemented
  • status_id was changed from Open to Closed
  • description was changed from I am using OSGEO4W QGIS 2.18.2. When I try to save edits after using the field calculator to calculate a field with a name that has capital letters, QGIS give the follow error:

1 Commit errors:
SUCCESS: 1 attribute(s) added.
ERROR: field with index 17 is not the same!
Provider: ogr
Storage: SQLite
expected field: name=WFC_wt type=QString typeName=string len=4 precision=0
retrieved field: name=wfc_wt type=QString typeName=String len=4 precision=0

Clearly I should just not use capital letters in a spatialite field name, but I use a variety of formats and would like to not have remind myself to check first.
to I am using OSGEO4W QGIS 2.18.2. When I try to save edits after using the field calculator to calculate a field with a name that has capital letters, QGIS give the follow error:

1 Commit errors:
SUCCESS: 1 attribute(s) added.
ERROR: field with index 17 is not the same!
Provider: ogr
Storage: SQLite
expected field: name=WFC_wt type=QString typeName=string len=4 precision=0
retrieved field: name=wfc_wt type=QString typeName=String len=4 precision=0

Clearly I should just not use capital letters in a spatialite field name, but I use a variety of formats and would like to not have remind myself to check first.

@qgib qgib closed this as completed Feb 23, 2019
@qgib qgib added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label 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!
Projects
None yet
Development

No branches or pull requests

1 participant