Bug report #14727

offline edits update wrong feature

Added by Dale Renton over 8 years ago. Updated over 8 years ago.

Status:Closed
Priority:Severe/Regression
Assignee:-
Category:C++ plugins/Offline editing
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:Yes Copied to github as #:22686

Description

Steps to reproduce:
add PostGIS vector layer that has multiple features
Database > Offline Editing > Convert to offline project
modify one of the feature attributes
Database > Offline Editing > Synchronize
wrong feature could potentially be modified

Additional info :
does not work after QGIS 2.6.1
offline sqlite log_fids table contains different offline_fid in 2.6.1 vs 2.14.1
in 2.6.1 the offline_fid is the same as the layer table rowid, however in 2.14.1 it is not

Associated revisions

Revision 216623ff
Added by Matthias Kuhn over 8 years ago

Fix wrong mapping of feature ids in offline editing

Fix #14727

Revision 7a27ef2b
Added by Matthias Kuhn over 8 years ago

Fix wrong mapping of feature ids in offline editing

Fix #14727

History

#1 Updated by Dale Renton over 8 years ago

Additional info (changed) :
does not work after QGIS 2.6.1
offline sqlite log_feature_updates table contains different fid in 2.6.1 vs 2.14.1
in 2.6.1 the fid is the same as the layer table rowid and the log_fids offline_fid
in 2.14.1 the fid is the same as the layer table rowid but the log_fids table offline_fid is different

#2 Updated by Matthias Kuhn over 8 years ago

  • Status changed from Open to Feedback

What kind of primary key does your original table have?

#3 Updated by Dale Renton over 8 years ago

auto increment integer

#4 Updated by Giovanni Manghi over 8 years ago

  • Target version set to Version 2.16
  • Status changed from Feedback to Open

#5 Updated by Anonymous over 8 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF