Bug report #14411
When copying a shapefile with right-click "save as" it turns integer-type to string-type
|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 #:||22392|
I tried to copy shapefiles with several integer- and real-type columns with the right-click-menu "save as..." and it turned out, that the resulting new shapefile gets all interger-types formatted into string-types. As far as I tried, this only happens to former integer-types. Real-types are correctly copied to real.
The layer attributes of the origin shapefile say, that the integers have the type "qlonglong" and the typename "Integer64". Those are formatted into type "QString" with typename "String" when copying the shapefile.
#1 Updated by Anita Graser over 7 years ago
- Affected QGIS version changed from 2.14.0 to master
- Priority changed from Normal to High
- Category set to Vectors
I can confirm. To reproduce, use for example lakes.shp from the QGIS sample data: the cat column will change from Int to String when using save as ...