Bug report #8235

Attribute will be NULL, after using field calculator at attribute table

Added by KOSUKE ASAHI over 11 years ago. Updated over 11 years ago.

Status:Closed
Priority:Severe/Regression
Assignee:-
Category:-
Affected QGIS version:master Regression?:No
Operating System:windows Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:17047

Description

Tested QGIS d37e03b installed from OSGeo4W.

- Open ESRI Shapefile
- Put over 10byte character in field calculator's output column at attribute table
- Attribute in output column will be NULL, after save

We know in ESRI Shapefile specification we couldn't put column name over 10byte. Could you put any check logic before save?


Related issues

Related to QGIS Application - Bug report #8145: Field calculator does not work when creating new PostGIS ... Closed 2013-06-24

Associated revisions

Revision 7ccd3d0a
Added by Jürgen Fischer over 11 years ago

limit shapefile fieldname to 10 in fieldcalculator and add attribute dialog (fixes #8235)

History

#1 Updated by Matthias Kuhn over 11 years ago

  • Priority changed from Normal to Severe/Regression

#2 Updated by Nathan Woodrow over 11 years ago

I can't reproduce here. My field name is truncated but no data loss.

#3 Updated by Matthias Kuhn over 11 years ago

Same as Nathan here. I have to commit twice (I think first time to truncate the field name, second to really commit) but no data loss.

Kosuke, can you add details about the field type that you are generating?

#4 Updated by Jürgen Fischer over 11 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF