Bug report #12611
Field calculator forcing creation of new virtual field on PostgreSQL/PostGIS table
|Affected QGIS version:||2.8.1||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||not reproducable|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||20730|
When trying to use the field calculator in 2.6.1 on a PostgreSQL 9.3/PostGIS 2.0 table of points - attempt to calculate a field using the field calculator creates an unnamed int2 virtual field. Unchecking the box for "Create a new field" leaves the "Create virtual field" box grayed out but still checked. When using the field calculator bar at the top of the attribute table, this does not happen and column updates correctly.
Image shows issue with "Create virtual field" checked and grayed out. Table behind show the virtual field created when trying to calculate existing 'lat' field, note the virtual field is the integer version of the attempted latitude $y value.