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

Save as... fails to populate fields if layer has similar names only different by case #21107

Closed
qgib opened this issue Jun 23, 2015 · 3 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Crash/Data Corruption High Priority Vectors Related to general vector layer handling (not specific data formats)

Comments

@qgib
Copy link
Contributor

qgib commented Jun 23, 2015

Author Name: Alexandre Neto (@SrNetoChan)
Original Redmine Issue: 13032
Affected QGIS version: master
Redmine category:vectors


When using "save as..." in a layer, the tool fails to fill all fields values correctly if there are columns with similar names (being CAPS the only difference; I know it's a bad policy to give similar names to columns, but... it's out of my reach)

QGIS will consider that the columns have the same name, and therefore will create a new column with a suffix (fieldname_1). So far so good. But then fails to populate the new column with values.

I have marked that it causes corruption since the output will not be what the user expects.

I believe that issue #21103 is also related. Have something to do with the QgsVectorFileWriter.

To replicate the problem one can create a memory layer and add two columns named 'fieldname' and 'FieldName', and add some features. Notice that the feature form won't work well and will fill both fields at the same time. Edit them in the attribute table. Save. Use Save as... to make the layer permanent.


Related issue(s): #21103 (relates)
Redmine related issue(s): 13027


@qgib
Copy link
Contributor Author

qgib commented Jun 24, 2015

Author Name: Giovanni Manghi (@gioman)


  • fixed_version_id was configured as Future Release - High Priority
  • priority_id was changed from Normal to High
  • category_id was changed from Attribute table to Vectors

@qgib
Copy link
Contributor Author

qgib commented Oct 11, 2015

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


  • subject was changed from Save as... failed to populate fields if layer as similar names (with caps) to Save as... fails to populate fields if layer has similar names only different by case

@qgib
Copy link
Contributor Author

qgib commented Oct 11, 2015

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


Fixed in changeset "8e2b791092ebc2be415c24c76bdc9d1b5a149961".


  • status_id was changed from Open to Closed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority Vectors Related to general vector layer handling (not specific data formats) Crash/Data Corruption labels May 25, 2019
@qgib qgib added this to the Future Release - High Priority milestone May 25, 2019
@qgib qgib closed this as completed 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! Crash/Data Corruption High Priority Vectors Related to general vector layer handling (not specific data formats)
Projects
None yet
Development

No branches or pull requests

1 participant