Bug report #12985
Shapefile: The length of real type field is reduced by 1 every save
Status: | Closed | ||
---|---|---|---|
Priority: | Severe/Regression | ||
Assignee: | Jürgen Fischer | ||
Category: | Data Provider/OGR | ||
Affected QGIS version: | master | Regression?: | No |
Operating System: | Easy fix?: | No | |
Pull Request or Patch supplied: | No | Resolution: | |
Crashes QGIS or corrupts data: | No | Copied to github as #: | 21063 |
Description
I just ran my QGIS tester plugin, and saw two test failed. Both tests are about input/output of shapefile and they are almost same. They load a set of shapefile and save it to another file set and examine whether the both file sets are identical. The result says that output dbf is not same as input dbf.
I looked at the shapefiles in QGIS, and saw that the length of real type field of output shapefile is less than that of the input by 1.
length, precision Input : 7, 2 Output: 6, 2
In addition, I saved the output shapefile to another shapefile and then the length of the real type field decreased to 5. This is real problem!
Test data (shapefile): https://github.com/minorua/QGISTesterA/tree/master/tests/data
QGIS master 2798ab0. With QGIS 2.8.2, no tests fail.
Related issues
History
#1 Updated by Jürgen Fischer over 9 years ago
- Assignee set to Jürgen Fischer
#2 Updated by Jürgen Fischer over 9 years ago
sounds related to 2fcbc8b
#3 Updated by Jürgen Fischer over 9 years ago
- Status changed from Open to Closed
Fixed in changeset 513cfad235cf587c48475d3d70b9fdd10a68dd06.