Error and segmentation fault adding new columns to PostGIS layers #20243
Labels
Attribute Table
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
Crash/Data Corruption
Milestone
Author Name: Pedro Venâncio (Pedro Venâncio)
Original Redmine Issue: 12040
Affected QGIS version: master
Redmine category:attribute_table
If you create one new column in the attribute table of a layer PostGIS, and save, everything is fine.
If you create two new columns, and saves only after the two columns have been created, QGIS throws an error:
Despite this error, the columns are created in the database, but apparently, after adding the columns, QGIS tries to do some more update.
It happens to me both creating the new columns with "New column" and with the "Field Calculator".
I've tested it with layers of points and polygons, and with columns of different types. The result is the same. I've also tested on Windows (OSGeo4W) and Linux.
After the error, QGIS crashes with a segmentation fault:
This only happens to me with QGIS master. Tested in QGIS 2.4, 2.6.0 and 2.6.1 without problems, so it is a regression.
To reproduce:
The text was updated successfully, but these errors were encountered: