Bug report #12611
Field calculator forcing creation of new virtual field on PostgreSQL/PostGIS table
|Affected QGIS version:
|Pull Request or Patch supplied:
|Crashes QGIS or corrupts data:
|Copied to github as #:
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.