New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PostGIS Split Fails With Data Loss #28238
Comments
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Bernhard Ströbl (Bernhard Ströbl) I can reproduce the behaviour (with one of my PosGIS layers) While splitting I get the following warnings in the PostGIS-Tab of the log gid is an integer field |
Author Name: Bernhard Ströbl (Bernhard Ströbl) I can save the split features when ticking Evaluate default values on provider side in Project Properties - Data Sources |
Author Name: Jan Lippmann (@j-lippmann) I can confirm. In my case with polygons. I think this problem has a relationship with #28251 , because:
BTW: If i save edits after step 1., there is no problem with duplicate key violation |
Author Name: Stephen Knox (Stephen Knox) I can't reproduce this on 3.5 master - I get three seperate lines after splitting, with no errors |
Author Name: Giovanni Manghi (@gioman) Stephen Knox wrote:
The original reporter also confirms?
|
Author Name: Spencer Gardner (@spencerrecneps) I'm on vacation for a few more days so I won't be able to confirm until then. I strongly suspect Jan is correct about this being related to #28251 which has been resolved. |
Author Name: Jan Lippmann (@j-lippmann) My Test with 3.4.3: There is no more issue. I think 32b7d7e solved the problem. Ticket can be closed... |
Author Name: Nyall Dawson (@nyalldawson)
|
Author Name: Spencer Gardner (@spencerrecneps)
Original Redmine Issue: 20418
Affected QGIS version: 3.4.1
Redmine category:editing
To reproduce:
@create table test (@
@ id serial primary key,@
@ geom geometry(linestring,4326)@
@);@
@insert into test (geom)@
@select st_setsrid(st_makeline(st_makepoint(1,2),st_makepoint(3,4)),4326)@
@;@
What should happen:
Layer saves the three features.
What happens:
Error is given indicating a failure to save edits because of a duplicate key violation. One of the three features is saved,
the other two are deleted from the dataset, despite having discarded all edits when prompted.
The text was updated successfully, but these errors were encountered: