Bug report #6621
TopoGeometry editing broken when using CTID as primary key
Status: | Closed | ||
---|---|---|---|
Priority: | Normal | ||
Assignee: | |||
Category: | Data Provider/PostGIS | ||
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 #: | 15806 |
Description
The latest TopoGeometry editing code, in the part where the id of the newly created TopoGeometry is updated, fails in that it uses CTID as a primary key but since we're updating the table the CTID changed since we looked at it...
Associated revisions
Only change the TopoGeometry definition, not its reference, on edit
Refactor the TopoGeometry editor to avoid touching the edited table
and directly act on the topology relation instead. Fixes #6621 but
also generally makes less writes to the database.
History
#1
Updated by Sandro Santilli almost 12 years ago
- Status changed from Open to Closed
Fixed in changeset 8c391922a62d9b87d88eb0652498c6fa48e365a1.