Bug report #16017

Field calculator error with spatialite layer

Added by Andrew McAninch over 3 years ago. Updated over 1 year ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Unknown
Affected QGIS version:2.18.2 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:fixed/implemented
Crashes QGIS or corrupts data:No Copied to github as #:23932

Description

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.

History

#1 Updated by Giovanni Manghi about 3 years ago

  • Easy fix? set to No
  • Regression? set to No

#2 Updated by Jürgen Fischer almost 3 years ago

  • Category set to Unknown

#3 Updated by matteo ghetta over 1 year ago

  • Resolution set to fixed/implemented
  • Status changed from Open to Closed
  • Description updated (diff)

Tested in 3.5 and works.

Also available in: Atom PDF