Bug report #5154
Need to check that precision<field width when adding a column
|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 #:||14906|
The "New Column" button in the attribute table window allows you to add a column even if you specify a precision greater than the field width you specify. It is then impossible to enter data in the column.
I'm guessing the field calculator would allow you to do the same thing, but I haven't tested it.
#4 Updated by Médéric RIBREUX about 5 years ago
- Status changed from Open to In Progress
Hello, bug triage...
in QGIS 2.13 master, you can't set a precision greater than the field length for decimal number (real) in the "Add field" tool in the Fields tab of the layer properties.
BUT, this is not true field calculator where you can modify the precision field like you want with no limit.
Half way done ! I think (unchecked) that we need to make some code fixes into src/app/qgsfieldcalculator.cpp...