Opened 15 years ago

Closed 15 years ago

#1681 closed bug (fixed)

QgsVectorFileWriter isn't case sensitive

Reported by: borysiasty Owned by: nobody
Priority: critical: causes crash or data corruption Milestone: Version 1.2.0
Component: Vectors Version: Trunk
Keywords: QgsVectorFileWriter, save vector, attributes, case sensitivity Cc: pcav, warmerdam
Must Fix for Release: Yes Platform: All
Platform Version: Awaiting user input: no

Description

QgsVectorFileWriter allows to create case sensitive fields like 'foo' and 'FOO' in one table, but values of both attributes are written to the first case-insensitively-found field:

  1. Create a new layer with two attributes like 'foo' and 'Foo' and add some features
  2. Save it as a new layer: menu Layer -> Save as shapefile
  3. The new layer's table contains corrupted data

It also doesn't respect the field width - see also #1664

Change History (3)

comment:1 by lutra, 15 years ago

Cc: pcav added
Milestone: Version 1.0.3Version 1.2.0

Still a issue on qgis 1.2 from trunk

comment:2 by warmerdam, 15 years ago

Cc: warmerdam added

comment:3 by jef, 15 years ago

Resolution: fixed
Status: newclosed

fixed in r11218

Note: See TracTickets for help on using tickets.